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
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
......
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