summaryrefslogtreecommitdiff
path: root/spec/services/web_hooks/destroy_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/web_hooks/destroy_service_spec.rb')
-rw-r--r--spec/services/web_hooks/destroy_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/web_hooks/destroy_service_spec.rb b/spec/services/web_hooks/destroy_service_spec.rb
index fda40eb01e2..5269fe08ac0 100644
--- a/spec/services/web_hooks/destroy_service_spec.rb
+++ b/spec/services/web_hooks/destroy_service_spec.rb
@@ -41,15 +41,15 @@ RSpec.describe WebHooks::DestroyService do
end
context 'with system hook' do
- let_it_be(:hook) { create(:system_hook, url: "http://example.com") }
- let_it_be(:log) { create_list(:web_hook_log, 3, web_hook: hook) }
+ let!(:hook) { create(:system_hook, url: "http://example.com") }
+ let!(:log) { create_list(:web_hook_log, 3, web_hook: hook) }
it_behaves_like 'batched destroys'
end
context 'with project hook' do
- let_it_be(:hook) { create(:project_hook) }
- let_it_be(:log) { create_list(:web_hook_log, 3, web_hook: hook) }
+ let!(:hook) { create(:project_hook) }
+ let!(:log) { create_list(:web_hook_log, 3, web_hook: hook) }
it_behaves_like 'batched destroys'
end