closes #5186
[arvados.git] / services / api / test / unit / collection_test.rb
index 59f9d3d41a52149e0d7f6a1532373df037b01a6d..08f46fddccced0974db6cf12f51f04827f862734 100644 (file)
@@ -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