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:
authorMatija Čupić <matteeyah@gmail.com>2017-12-21 20:53:26 +0300
committerMatija Čupić <matteeyah@gmail.com>2017-12-21 20:53:26 +0300
commitab2326f87cab96abc91e10d4a1602a5d2b78f1e8 (patch)
tree62d10dd364ae610820e517b851572c0a50372d9f /spec/support/google_api
parent97b4e76f9b38720bd48d1ee72d339b4bf027d2bd (diff)
Make GCP billing check mock more specific
Diffstat (limited to 'spec/support/google_api')
-rw-r--r--spec/support/google_api/cloud_platform_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/google_api/cloud_platform_helpers.rb b/spec/support/google_api/cloud_platform_helpers.rb
index 9f9289fa580..887ea5c99b1 100644
--- a/spec/support/google_api/cloud_platform_helpers.rb
+++ b/spec/support/google_api/cloud_platform_helpers.rb
@@ -13,7 +13,7 @@ module GoogleApi
def stub_google_project_billing_status
redis_double = double
allow(Gitlab::Redis::SharedState).to receive(:with).and_yield(redis_double)
- allow(redis_double).to receive(:get).and_return('true')
+ allow(redis_double).to receive(:get).with(CheckGcpProjectBillingWorker.redis_shared_state_key_for).and_return('true')
end
def stub_cloud_platform_get_zone_cluster(project_id, zone, cluster_id, **options)