1 require 'minitest/autorun'
4 class TestCollectionCreate < Minitest::Test
8 def test_small_collection
9 uuid = Digest::MD5.hexdigest(foo_manifest) + '+' + foo_manifest.size.to_s
10 out, err = capture_subprocess_io do
11 assert_arv('--format', 'uuid', 'collection', 'create', '--collection', {
13 manifest_text: foo_manifest
16 assert_equal uuid+"\n", out
23 expect = case args.first
30 system(['./bin/arv', 'arv'], *args),
31 "`arv #{args.join ' '}` " +
32 "should exit #{if expect then 0 else 'non-zero' end}")
36 ". #{Digest::MD5.hexdigest('foo')}+3 0:3:foo\n"