9426: save "tags" as "properties" on collection, rather than as a field in properties.
[arvados.git] / apps / workbench / test / controllers / collections_controller_test.rb
index 63e1ae3972755b6a9f9df3d476e0dd7037417b58..ce6adbcf32d552e98efd0c340dff850cd8436f1e 100644 (file)
@@ -828,15 +828,12 @@ class CollectionsControllerTest < ActionController::TestCase
     assert_equal false, response.body.include?("existing tag 1")
     assert_equal false, response.body.include?("value for existing tag 1")
 
-    updated_properties = Collection.find(collection['uuid']).properties
-    updated_tags = updated_properties[:tags]
+    updated_tags = Collection.find(collection['uuid']).properties
     assert_equal true, updated_tags.keys.include?(:'new_tag1')
     assert_equal new_tags['new_tag1'], updated_tags[:'new_tag1']
     assert_equal true, updated_tags.keys.include?(:'new_tag2')
     assert_equal new_tags['new_tag2'], updated_tags[:'new_tag2']
     assert_equal false, updated_tags.keys.include?(:'existing tag 1')
     assert_equal false, updated_tags.keys.include?(:'existing tag 2')
-    assert_equal true, updated_properties.keys.include?(:'some other property')
-    assert_equal 'value for the other property', updated_properties[:'some other property']
   end
 end