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/services/releases/destroy_service_spec.rb')
-rw-r--r--spec/services/releases/destroy_service_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/releases/destroy_service_spec.rb b/spec/services/releases/destroy_service_spec.rb
index 2b6e96a781e..de3ce2b6206 100644
--- a/spec/services/releases/destroy_service_spec.rb
+++ b/spec/services/releases/destroy_service_spec.rb
@@ -83,5 +83,11 @@ RSpec.describe Releases::DestroyService, feature_category: :release_orchestratio
expect(milestone.reload).to be_persisted
end
end
+
+ it 'executes hooks' do
+ expect(service.release).to receive(:execute_hooks).with('delete')
+
+ service.execute
+ end
end
end