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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 17:16:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 17:16:28 +0300
commite4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch)
tree2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /spec/workers/jira_connect
parentffda4e7bcac36987f936b4ba515995a6698698f0 (diff)
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'spec/workers/jira_connect')
-rw-r--r--spec/workers/jira_connect/retry_request_worker_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/workers/jira_connect/retry_request_worker_spec.rb b/spec/workers/jira_connect/retry_request_worker_spec.rb
index e96a050da13..5453711f24e 100644
--- a/spec/workers/jira_connect/retry_request_worker_spec.rb
+++ b/spec/workers/jira_connect/retry_request_worker_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe JiraConnect::RetryRequestWorker, feature_category: :integrations
subject(:perform) { described_class.new.perform(event_url, jwt, attempts) }
it 'sends the request, with the appropriate headers' do
- expect(JiraConnect::RetryRequestWorker).not_to receive(:perform_in)
+ expect(described_class).not_to receive(:perform_in)
stub_request(:post, event_url)
@@ -26,7 +26,7 @@ RSpec.describe JiraConnect::RetryRequestWorker, feature_category: :integrations
end
it 'arranges to retry the request' do
- expect(JiraConnect::RetryRequestWorker).to receive(:perform_in).with(1.hour, event_url, jwt, attempts - 1)
+ expect(described_class).to receive(:perform_in).with(1.hour, event_url, jwt, attempts - 1)
perform
end
@@ -35,7 +35,7 @@ RSpec.describe JiraConnect::RetryRequestWorker, feature_category: :integrations
let(:attempts) { 0 }
it 'does not retry' do
- expect(JiraConnect::RetryRequestWorker).not_to receive(:perform_in)
+ expect(described_class).not_to receive(:perform_in)
perform
end