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
assert(page.has_text?(foo_collection['uuid']), "Collection page did not include foo file")
assert(page.has_text?(bar_collection['uuid']), "Collection page did not include bar file")
- within('tr', text: foo_collection['uuid']) do
+ within "tr[data-object-uuid=\"#{foo_collection['uuid']}\"]" do
find('input[type=checkbox]').click
end
- within('tr', text: bar_collection['uuid']) do
+ within "tr[data-object-uuid=\"#{bar_collection['uuid']}\"]" do
find('input[type=checkbox]').click
end
uuid: zzzzz-4zz18-znfnqtbbv4spc3w
portable_data_hash: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
owner_uuid: zzzzz-tpzed-000000000000000
- created_at: 2014-02-03T17:22:54Z
+ created_at: 2015-02-03T17:22:54Z
modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f
- modified_at: 2014-02-03T17:22:54Z
- updated_at: 2014-02-03T17:22:54Z
+ modified_at: 2015-02-03T17:22:54Z
+ updated_at: 2015-02-03T17:22:54Z
manifest_text: ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n"
name: foo_file
uuid: zzzzz-4zz18-ehbhgtheo8909or
portable_data_hash: fa7aeb5140e2848d39b416daeef4ffc5+45
owner_uuid: zzzzz-tpzed-000000000000000
- created_at: 2014-02-03T17:22:54Z
+ created_at: 2015-02-03T17:22:54Z
modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr
modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f
- modified_at: 2014-02-03T17:22:54Z
- updated_at: 2014-02-03T17:22:54Z
+ modified_at: 2015-02-03T17:22:54Z
+ updated_at: 2015-02-03T17:22:54Z
manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n"
name: bar_file
manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n"
name: collection with tags
properties:
- tags:
- existing tag 1: value for existing tag 1
- existing tag 2: value for existing tag 2
- some other property: value for the other property
+ existing tag 1: value for existing tag 1
+ existing tag 2: value for existing tag 2
trashed_collection_to_test_name_conflict_on_untrash:
uuid: zzzzz-4zz18-trashedcolnamec