Skip to content

Commit

Permalink
Update authentication_helpers.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 committed Sep 7, 2023
1 parent 4708b5d commit dc93510
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/support/authentication_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def user_client_with_membership(classification_user_group, memberships, is_panop
memberships_url = "/memberships?user_id=#{classification_user_group.user_id}&user_group_id=#{classification_user_group.user_group_id}"

@user_client_with_membership = double(Panoptes::Client, me: me_hash).tap do |client|
allow(client).to receive(:is_a?).and_return(false)
allow(client).to receive(:is_a?).with(Panoptes::Client).and_return(true)
allow(client).to receive_message_chain(:panoptes, :get).with(memberships_url).and_return('memberships' => memberships)
end
Expand All @@ -44,7 +43,6 @@ def user_client(user_id, is_panoptes_admin)
}

@user_client = double(Panoptes::Client, me: me_hash).tap do |client|
allow(client).to receive(:is_a?).and_return(false)
allow(client).to receive(:is_a?).with(Panoptes::Client).and_return(true)
end

Expand Down

0 comments on commit dc93510

Please sign in to comment.