diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-07 16:18:53 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-01-07 16:18:53 +0100 |
commit | e7a8564f39a46a5fa5f34f798b890c0a62ff12e2 (patch) | |
tree | 701591864859c64c297dcf3895a456bd4db21dcf /spec/workers | |
parent | 15b5b91d20d75c159898e716ba199c4b2e3a0af5 (diff) | |
download | gitlab-ce-e7a8564f39a46a5fa5f34f798b890c0a62ff12e2.tar.gz |
Refactor GCP session token exchange scheme
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/check_gcp_project_billing_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/check_gcp_project_billing_worker_spec.rb b/spec/workers/check_gcp_project_billing_worker_spec.rb index 83fdf719358..744ac65859a 100644 --- a/spec/workers/check_gcp_project_billing_worker_spec.rb +++ b/spec/workers/check_gcp_project_billing_worker_spec.rb @@ -8,7 +8,7 @@ describe CheckGcpProjectBillingWorker do context 'when there is a token in redis' do before do - allow_any_instance_of(described_class).to receive(:get_token).and_return(token) + allow_any_instance_of(described_class).to receive(:get_session_token).and_return(token) end context 'when there is no lease' do @@ -48,7 +48,7 @@ describe CheckGcpProjectBillingWorker do context 'when there is no token in redis' do before do - allow_any_instance_of(described_class).to receive(:get_token).and_return(nil) + allow_any_instance_of(described_class).to receive(:get_session_token).and_return(nil) end it 'does not call the service' do |