1 require 'minitest/autorun'
3 require 'active_support/core_ext'
5 class TestCollectionCreate < Minitest::Test
9 def test_small_collection
10 skip "Waiting unitl #4534 is implemented"
12 uuid = Digest::MD5.hexdigest(foo_manifest) + '+' + foo_manifest.size.to_s
13 out, err = capture_subprocess_io do
14 assert_arv('--format', 'uuid', 'collection', 'create', '--collection', {
16 manifest_text: foo_manifest
19 assert /^([0-9a-z]{5}-4zz18-[0-9a-z]{15})?$/.match(out)
26 expect = case args.first
33 system(['./bin/arv', 'arv'], *args),
34 "`arv #{args.join ' '}` " +
35 "should exit #{if expect then 0 else 'non-zero' end}")
39 ". #{Digest::MD5.hexdigest('foo')}+3 0:3:foo\n"