+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'test_helper'
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