X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/80f755b89c729a2772e9e5f5a6b23f20552f8211..060d38d627bd1e51dd2b3c6e7de9af6aa7d7b6f3:/apps/workbench/test/controllers/collections_controller_test.rb?ds=sidebyside diff --git a/apps/workbench/test/controllers/collections_controller_test.rb b/apps/workbench/test/controllers/collections_controller_test.rb index 63e1ae3972..26d6fda85e 100644 --- a/apps/workbench/test/controllers/collections_controller_test.rb +++ b/apps/workbench/test/controllers/collections_controller_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class CollectionsControllerTest < ActionController::TestCase @@ -828,15 +832,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