diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-12 18:32:10 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-12 21:32:56 +0100 |
commit | f95d9fdcc5f52e6371ca78b21538e87e9ba738f1 (patch) | |
tree | 0cbaf4d332e1ead0c29fab786269513a3041b3de /spec | |
parent | 5553524516135f573b1264785ef04f0fe638d5c2 (diff) | |
download | gitlab-ce-f95d9fdcc5f52e6371ca78b21538e87e9ba738f1.tar.gz |
Count all billing_state transitions with labels41722-track-gcp-billing-enabled-project-changes
Diffstat (limited to 'spec')
-rw-r--r-- | spec/workers/check_gcp_project_billing_worker_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/workers/check_gcp_project_billing_worker_spec.rb b/spec/workers/check_gcp_project_billing_worker_spec.rb index 179f26475e1..526ecf75921 100644 --- a/spec/workers/check_gcp_project_billing_worker_spec.rb +++ b/spec/workers/check_gcp_project_billing_worker_spec.rb @@ -80,8 +80,8 @@ describe CheckGcpProjectBillingWorker do expect(CheckGcpProjectBillingService).to receive_message_chain(:new, :execute).and_return([]) end - it 'does not increment the billing change counter' do - expect_any_instance_of(described_class).not_to receive(:billing_changed_counter) + it 'increments the billing change counter' do + expect_any_instance_of(described_class).to receive_message_chain(:billing_changed_counter, :increment) subject end @@ -106,8 +106,8 @@ describe CheckGcpProjectBillingWorker do expect(CheckGcpProjectBillingService).to receive_message_chain(:new, :execute).and_return([double]) end - it 'does not increment the billing change counter' do - expect_any_instance_of(described_class).not_to receive(:billing_changed_counter) + it 'increment the billing change counter' do + expect_any_instance_of(described_class).to receive_message_chain(:billing_changed_counter, :increment) subject end |