Merge branch 'master' into origin-2035-arv-mount-tags-folders
[arvados.git] / apps / workbench / test / unit / collection_test.rb
1 require 'test_helper'
2
3 class CollectionTest < ActiveSupport::TestCase
4   test 'recognize empty blob locator' do
5     ['d41d8cd98f00b204e9800998ecf8427e+0',
6      'd41d8cd98f00b204e9800998ecf8427e',
7      'd41d8cd98f00b204e9800998ecf8427e+0+Xyzzy'].each do |x|
8       assert_equal true, Collection.is_empty_blob_locator?(x)
9     end
10     ['d41d8cd98f00b204e9800998ecf8427e0',
11      'acbd18db4cc2f85cedef654fccc4a4d8+3',
12      'acbd18db4cc2f85cedef654fccc4a4d8+0'].each do |x|
13       assert_equal false, Collection.is_empty_blob_locator?(x)
14     end
15   end
16 end