X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a934fcf84acd4cc3a351fde1b6e21a0bd93757ef..0cefa4c0f3c1b16884b04d6273bd8730166d69ba:/services/api/test/unit/collection_test.rb diff --git a/services/api/test/unit/collection_test.rb b/services/api/test/unit/collection_test.rb index 59f9d3d41a..08f46fddcc 100644 --- a/services/api/test/unit/collection_test.rb +++ b/services/api/test/unit/collection_test.rb @@ -128,4 +128,13 @@ class CollectionTest < ActiveSupport::TestCase end end end + + test "create collection with properties" do + act_as_system_user do + c = Collection.create(manifest_text: ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n", + properties: {'property_1' => 'value_1'}) + assert c.valid? + assert_equal 'value_1', c.properties['property_1'] + end + end end