Commit 4b87f081 authored by Rémy Coutable's avatar Rémy Coutable

Fix a spec failure due to the rename of Project#deployment_service to #deployment_platform

See
https://gitlab.com/gitlab-org/gitlab-ce/commit/53da3d976f3705a87edc50dca41748b5e479fc83
and https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/43012757Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 0cbf3e5c
...@@ -146,7 +146,7 @@ class Environment < ActiveRecord::Base ...@@ -146,7 +146,7 @@ class Environment < ActiveRecord::Base
end end
def rollout_status def rollout_status
project.deployment_service.rollout_status(self) if deployment_service_ready? project.deployment_platform.rollout_status(self) if deployment_service_ready?
end end
def has_metrics? def has_metrics?
......
...@@ -420,7 +420,7 @@ describe Environment do ...@@ -420,7 +420,7 @@ describe Environment do
end end
it 'returns the rollout status from the deployment service' do it 'returns the rollout status from the deployment service' do
expect(project.deployment_service) expect(project.deployment_platform)
.to receive(:rollout_status).with(environment) .to receive(:rollout_status).with(environment)
.and_return(:fake_rollout_status) .and_return(:fake_rollout_status)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment