X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4ca9ad94a6bb006d1f3c7ba207837f1736d1247..2e104941dbf1e4bf92e0632cadeb946be0595d67:/services/api/test/functional/arvados/v1/users_controller_test.rb diff --git a/services/api/test/functional/arvados/v1/users_controller_test.rb b/services/api/test/functional/arvados/v1/users_controller_test.rb index 157e487859..579b8cc6d0 100644 --- a/services/api/test/functional/arvados/v1/users_controller_test.rb +++ b/services/api/test/functional/arvados/v1/users_controller_test.rb @@ -603,7 +603,7 @@ class Arvados::V1::UsersControllerTest < ActionController::TestCase active_user = User.find_by_uuid(users(:active).uuid) readable_groups = active_user.groups_i_can(:read) - all_users_group = Group.all.collect(&:uuid).select { |g| g.match /-f+$/ } + all_users_group = Group.all.collect(&:uuid).select { |g| g.match(/-f+$/) } refute_includes(readable_groups, all_users_group, "active user can read All Users group after being deactivated") assert_equal(false, active_user.is_invited, @@ -842,14 +842,12 @@ class Arvados::V1::UsersControllerTest < ActionController::TestCase end def verify_num_links (original_links, expected_additional_links) - links_now = Link.all assert_equal expected_additional_links, Link.all.size-original_links.size, "Expected #{expected_additional_links.inspect} more links" end def find_obj_in_resp (response_items, object_type, head_kind=nil) return_obj = nil - response_items response_items.each { |x| if !x next