summaryrefslogtreecommitdiff
path: root/spec/services/deployments/update_environment_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/deployments/update_environment_service_spec.rb')
-rw-r--r--spec/services/deployments/update_environment_service_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/deployments/update_environment_service_spec.rb b/spec/services/deployments/update_environment_service_spec.rb
index 372805cc0fd..4d15258a186 100644
--- a/spec/services/deployments/update_environment_service_spec.rb
+++ b/spec/services/deployments/update_environment_service_spec.rb
@@ -33,7 +33,7 @@ RSpec.describe Deployments::UpdateEnvironmentService do
before do
allow(Deployments::LinkMergeRequestWorker).to receive(:perform_async)
- allow(Deployments::ExecuteHooksWorker).to receive(:perform_async)
+ allow(Deployments::HooksWorker).to receive(:perform_async)
job.success! # Create/Succeed deployment
end
@@ -161,6 +161,7 @@ RSpec.describe Deployments::UpdateEnvironmentService do
context 'when deployment was created by an external CD system' do
before do
deployment.update_column(:deployable_id, nil)
+ deployment.reload
end
it 'guesses the deployment tier' do