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)
10 ['d41d8cd98f00b204e9800998ecf8427e0',
11 'acbd18db4cc2f85cedef654fccc4a4d8+3',
12 'acbd18db4cc2f85cedef654fccc4a4d8+0'].each do |x|
13 assert_equal false, Collection.is_empty_blob_locator?(x)