Commit 9a290f0d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix specs for environment terminals and rollout status

parent 1924c2c9
...@@ -407,7 +407,7 @@ describe Environment do ...@@ -407,7 +407,7 @@ describe Environment do
shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do
it 'returns the terminals from the deployment service' do it 'returns the terminals from the deployment service' do
expect(project.deployment_platform(environment: environment)) expect(environment.deployment_platform)
.to receive(:terminals).with(environment) .to receive(:terminals).with(environment)
.and_return(:fake_terminals) .and_return(:fake_terminals)
...@@ -448,7 +448,7 @@ describe Environment do ...@@ -448,7 +448,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_platform(environment: environment)) expect(environment.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