Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-20 09:06:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-20 09:06:16 +0300
commit0282449e6ea95b54b32acfd2de24c8c5f64a8165 (patch)
tree017b43b103e45ff571d637a5efc77b5ed25c0686 /spec/lib/google_api
parent0ecdcf59f4342de55a7d2c3ee4ac0d9c3b116aa5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/google_api')
-rw-r--r--spec/lib/google_api/auth_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/google_api/auth_spec.rb b/spec/lib/google_api/auth_spec.rb
index a25004ac385..719e98c5fdf 100644
--- a/spec/lib/google_api/auth_spec.rb
+++ b/spec/lib/google_api/auth_spec.rb
@@ -30,8 +30,9 @@ describe GoogleApi::Auth do
end
before do
- allow_any_instance_of(OAuth2::Strategy::AuthCode)
- .to receive(:get_token).and_return(token)
+ allow_next_instance_of(OAuth2::Strategy::AuthCode) do |instance|
+ allow(instance).to receive(:get_token).and_return(token)
+ end
end
it 'returns token and expires_at' do