X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/54050447a56ab3e019746f12eb36b026dd5d2fb0..6d5e04a731edc9ce8944ecea637070afbdadeb05:/apps/workbench/test/unit/group_test.rb diff --git a/apps/workbench/test/unit/group_test.rb b/apps/workbench/test/unit/group_test.rb index c555c4a624..3f5cebc955 100644 --- a/apps/workbench/test/unit/group_test.rb +++ b/apps/workbench/test/unit/group_test.rb @@ -5,25 +5,16 @@ class GroupTest < ActiveSupport::TestCase use_token :active oi = Group. find(api_fixture('groups')['asubproject']['uuid']). - contents(include_linked: true) + contents() assert_operator(0, :<, oi.count, "Expected to find some items belonging to :active user") assert_operator(0, :<, oi.items_available, "Expected contents response to have items_available > 0") - assert_operator(0, :<, oi.result_links.count, - "Expected to receive name links with contents response") oi_uuids = oi.collect { |i| i['uuid'] } expect_uuid = api_fixture('specimens')['in_asubproject']['uuid'] assert_includes(oi_uuids, expect_uuid, "Expected '#{expect_uuid}' in asubproject's contents") - - expect_uuid = api_fixture('specimens')['in_aproject_linked_from_asubproject']['uuid'] - expect_name = api_fixture('links')['specimen_is_in_two_projects']['name'] - assert_includes(oi_uuids, expect_uuid, - "Expected '#{expect_uuid}' in asubproject's contents") - assert_equal(expect_name, oi.name_for(expect_uuid), - "Expected name_for '#{expect_uuid}' to be '#{expect_name}'") end test "can select specific group columns" do