diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-10 12:10:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-10 12:10:08 +0300 |
commit | 5adf6557e251c047ed68bac28cfecf9491ee6b41 (patch) | |
tree | a7ea2924ef96ccf36a915ddaf686f5f6e1e75b00 /spec/workers | |
parent | 0adc81d8e0c7b291fd7fdef33a4ea9c01b4852ce (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/web_hook_worker_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/workers/web_hook_worker_spec.rb b/spec/workers/web_hook_worker_spec.rb index a86964aa417..0f40177eb7d 100644 --- a/spec/workers/web_hook_worker_spec.rb +++ b/spec/workers/web_hook_worker_spec.rb @@ -15,6 +15,10 @@ RSpec.describe WebHookWorker do subject.perform(project_hook.id, data, hook_name) end + it 'does not error when the WebHook record cannot be found' do + expect { subject.perform(non_existing_record_id, data, hook_name) }.not_to raise_error + end + it_behaves_like 'worker with data consistency', described_class, data_consistency: :delayed |