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:
Diffstat (limited to 'spec/workers/jira_connect/forward_event_worker_spec.rb')
-rw-r--r--spec/workers/jira_connect/forward_event_worker_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/workers/jira_connect/forward_event_worker_spec.rb b/spec/workers/jira_connect/forward_event_worker_spec.rb
index 7de9952a1da..d3db07b8cb4 100644
--- a/spec/workers/jira_connect/forward_event_worker_spec.rb
+++ b/spec/workers/jira_connect/forward_event_worker_spec.rb
@@ -24,14 +24,14 @@ RSpec.describe JiraConnect::ForwardEventWorker do
expect(Atlassian::Jwt).to receive(:encode).with({ iss: client_key, qsh: 'some_qsh' }, shared_secret).and_return('auth_token')
expect(JiraConnect::RetryRequestWorker).to receive(:perform_async).with(event_url, 'auth_token')
- expect { perform }.to change(JiraConnectInstallation, :count).by(-1)
+ expect { perform }.to change { JiraConnectInstallation.count }.by(-1)
end
context 'when installation does not exist' do
let(:jira_connect_installation) { instance_double(JiraConnectInstallation, id: -1) }
it 'does nothing' do
- expect { perform }.not_to change(JiraConnectInstallation, :count)
+ expect { perform }.not_to change { JiraConnectInstallation.count }
end
end
@@ -39,7 +39,7 @@ RSpec.describe JiraConnect::ForwardEventWorker do
let!(:jira_connect_installation) { create(:jira_connect_installation) }
it 'forwards the event including the auth header' do
- expect { perform }.to change(JiraConnectInstallation, :count).by(-1)
+ expect { perform }.to change { JiraConnectInstallation.count }.by(-1)
expect(JiraConnect::RetryRequestWorker).not_to receive(:perform_async)
end