renames some of the specs and adds changelog entry
This commit is contained in:
parent
02c6cbf53f
commit
2f5637d6e3
2 changed files with 7 additions and 3 deletions
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: fixes last_deployment call environment is nil
|
||||
merge_request: 7671
|
||||
author:
|
|
@ -88,7 +88,7 @@ describe 'projects/builds/show', :view do
|
|||
create(:ci_build, :running, environment: 'staging', pipeline: pipeline)
|
||||
end
|
||||
|
||||
context 'and environment does exist' do
|
||||
context 'when environment exists' do
|
||||
let!(:environment) do
|
||||
create(:environment, name: 'staging', project: project)
|
||||
end
|
||||
|
@ -101,7 +101,7 @@ describe 'projects/builds/show', :view do
|
|||
'.environment-information', text: expected_text)
|
||||
end
|
||||
|
||||
context 'and has deployment' do
|
||||
context 'when it has deployment' do
|
||||
let!(:deployment) do
|
||||
create(:deployment, environment: environment)
|
||||
end
|
||||
|
@ -118,7 +118,7 @@ describe 'projects/builds/show', :view do
|
|||
end
|
||||
end
|
||||
|
||||
context 'and environment does not exist' do
|
||||
context 'when environment does not exist' do
|
||||
it 'shows deployment message' do
|
||||
expected_text = 'This build is creating a deployment to staging'
|
||||
render
|
||||
|
|
Loading…
Reference in a new issue