summaryrefslogtreecommitdiff
path: root/spec/services/releases/update_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/releases/update_service_spec.rb')
-rw-r--r--spec/services/releases/update_service_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/releases/update_service_spec.rb b/spec/services/releases/update_service_spec.rb
index 00544b820cb..932a7fab5ec 100644
--- a/spec/services/releases/update_service_spec.rb
+++ b/spec/services/releases/update_service_spec.rb
@@ -32,6 +32,12 @@ RSpec.describe Releases::UpdateService do
expect(result[:release].description).to eq(new_description)
end
+ it 'executes hooks' do
+ expect(service.release).to receive(:execute_hooks).with('update')
+
+ service.execute
+ end
+
context 'when the tag does not exists' do
let(:tag_name) { 'foobar' }