GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 2f5637d6 authored by tiagonbotelho's avatar tiagonbotelho

renames some of the specs and adds changelog entry

parent 02c6cbf5
---
title: fixes last_deployment call environment is nil
merge_request: 7671
author:
...@@ -88,7 +88,7 @@ describe 'projects/builds/show', :view do ...@@ -88,7 +88,7 @@ describe 'projects/builds/show', :view do
create(:ci_build, :running, environment: 'staging', pipeline: pipeline) create(:ci_build, :running, environment: 'staging', pipeline: pipeline)
end end
context 'and environment does exist' do context 'when environment exists' do
let!(:environment) do let!(:environment) do
create(:environment, name: 'staging', project: project) create(:environment, name: 'staging', project: project)
end end
...@@ -101,7 +101,7 @@ describe 'projects/builds/show', :view do ...@@ -101,7 +101,7 @@ describe 'projects/builds/show', :view do
'.environment-information', text: expected_text) '.environment-information', text: expected_text)
end end
context 'and has deployment' do context 'when it has deployment' do
let!(:deployment) do let!(:deployment) do
create(:deployment, environment: environment) create(:deployment, environment: environment)
end end
...@@ -118,7 +118,7 @@ describe 'projects/builds/show', :view do ...@@ -118,7 +118,7 @@ describe 'projects/builds/show', :view do
end end
end end
context 'and environment does not exist' do context 'when environment does not exist' do
it 'shows deployment message' do it 'shows deployment message' do
expected_text = 'This build is creating a deployment to staging' expected_text = 'This build is creating a deployment to staging'
render render
......
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