summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2017-12-16 05:26:07 +0100
committerMatija Čupić <matteeyah@gmail.com>2017-12-16 05:26:07 +0100
commit914260930f800342c495114f507947ae35471e80 (patch)
treef7c65501605571c76bcf40a0dc62bfc03f52d748 /spec/workers
parent935a27cfef3c5a4dd9291c21af69b41a7169817d (diff)
downloadgitlab-ce-914260930f800342c495114f507947ae35471e80.tar.gz
Expand controller test suite matrix
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/check_gcp_project_billing_worker_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/workers/check_gcp_project_billing_worker_spec.rb b/spec/workers/check_gcp_project_billing_worker_spec.rb
index ce9632549b6..d7984ad0c1b 100644
--- a/spec/workers/check_gcp_project_billing_worker_spec.rb
+++ b/spec/workers/check_gcp_project_billing_worker_spec.rb
@@ -7,7 +7,7 @@ describe CheckGcpProjectBillingWorker do
context 'when there is no lease' do
before do
- allow_any_instance_of(CheckGcpProjectBillingWorker).to receive(:try_obtain_lease_for).and_return('randomuuid')
+ allow_any_instance_of(described_class).to receive(:try_obtain_lease_for).and_return('randomuuid')
end
it 'calls the service' do
@@ -21,7 +21,7 @@ describe CheckGcpProjectBillingWorker do
expect(CheckGcpProjectBillingService).to receive_message_chain(:new, :execute).and_return(true)
expect(Gitlab::Redis::SharedState).to receive(:with).and_yield(redis_double)
- expect(redis_double).to receive(:set).with(CheckGcpProjectBillingWorker.redis_shared_state_key_for(token), anything)
+ expect(redis_double).to receive(:set).with(described_class.redis_shared_state_key_for(token), anything)
subject
end
@@ -29,7 +29,7 @@ describe CheckGcpProjectBillingWorker do
context 'when there is a lease' do
before do
- allow_any_instance_of(CheckGcpProjectBillingWorker).to receive(:try_obtain_lease_for).and_return(false)
+ allow_any_instance_of(described_class).to receive(:try_obtain_lease_for).and_return(false)
end
it 'does not call the service' do