diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-20 16:18:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-20 16:18:24 +0300 |
commit | 0653e08efd039a5905f3fa4f6e9cef9f5d2f799c (patch) | |
tree | 4dcc884cf6d81db44adae4aa99f8ec1233a41f55 /spec/workers/post_receive_spec.rb | |
parent | 744144d28e3e7fddc117924fef88de5d9674fe4c (diff) |
Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42
Diffstat (limited to 'spec/workers/post_receive_spec.rb')
-rw-r--r-- | spec/workers/post_receive_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/workers/post_receive_spec.rb b/spec/workers/post_receive_spec.rb index c111c3164eb..ddd295215a1 100644 --- a/spec/workers/post_receive_spec.rb +++ b/spec/workers/post_receive_spec.rb @@ -22,6 +22,8 @@ RSpec.describe PostReceive do create(:project, :repository, auto_cancel_pending_pipelines: 'disabled') end + let(:job_args) { [gl_repository, key_id, base64_changes] } + def perform(changes: base64_changes) described_class.new.perform(gl_repository, key_id, changes) end @@ -282,6 +284,8 @@ RSpec.describe PostReceive do end end end + + it_behaves_like 'an idempotent worker' end describe '#process_wiki_changes' do @@ -352,6 +356,8 @@ RSpec.describe PostReceive do perform end end + + it_behaves_like 'an idempotent worker' end context 'webhook' do @@ -458,6 +464,8 @@ RSpec.describe PostReceive do end end end + + it_behaves_like 'an idempotent worker' end context 'with PersonalSnippet' do @@ -484,5 +492,7 @@ RSpec.describe PostReceive do described_class.new.perform(gl_repository, key_id, base64_changes) end + + it_behaves_like 'an idempotent worker' end end |