Don't capitalize environment name in show page

Upate test to match the new behavior
This commit is contained in:
Filipa Lacerda 2017-01-31 10:40:24 +00:00
parent 36fd2e2e2c
commit 4840c68241
4 changed files with 10 additions and 2 deletions

View file

@ -5,7 +5,7 @@
%div{ class: container_class }
.top-area.adjust
.col-md-9
%h3.page-title= @environment.name.capitalize
%h3.page-title= @environment.name
.col-md-3
.nav-controls
= render 'projects/environments/terminal_button', environment: @environment

View file

@ -0,0 +1,4 @@
---
title: Don't capitalize environment name in show page
merge_request:
author:

View file

@ -19,6 +19,10 @@ feature 'Environment', :feature do
visit_environment(environment)
end
scenario 'shows environment name' do
expect(page).to have_content(environment.name)
end
context 'without deployments' do
scenario 'does show no deployments' do
expect(page).to have_content('You don\'t have any deployments right now.')

View file

@ -194,7 +194,7 @@ feature 'Environments page', :feature, :js do
end
scenario 'does create a new pipeline' do
expect(page).to have_content('Production')
expect(page).to have_content('production')
end
end