Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
4840c682
Commit
4840c682
authored
Jan 31, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't capitalize environment name in show page
Upate test to match the new behavior
parent
36fd2e2e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
app/views/projects/environments/show.html.haml
app/views/projects/environments/show.html.haml
+1
-1
changelogs/unreleased/27484-environment-show-name.yml
changelogs/unreleased/27484-environment-show-name.yml
+4
-0
spec/features/environment_spec.rb
spec/features/environment_spec.rb
+4
-0
spec/features/environments_spec.rb
spec/features/environments_spec.rb
+1
-1
No files found.
app/views/projects/environments/show.html.haml
View file @
4840c682
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
%div
{
class:
container_class
}
%div
{
class:
container_class
}
.top-area.adjust
.top-area.adjust
.col-md-9
.col-md-9
%h3
.page-title
=
@environment
.
name
.
capitalize
%h3
.page-title
=
@environment
.
name
.col-md-3
.col-md-3
.nav-controls
.nav-controls
=
render
'projects/environments/terminal_button'
,
environment:
@environment
=
render
'projects/environments/terminal_button'
,
environment:
@environment
...
...
changelogs/unreleased/27484-environment-show-name.yml
0 → 100644
View file @
4840c682
---
title
:
Don't capitalize environment name in show page
merge_request
:
author
:
spec/features/environment_spec.rb
View file @
4840c682
...
@@ -19,6 +19,10 @@ feature 'Environment', :feature do
...
@@ -19,6 +19,10 @@ feature 'Environment', :feature do
visit_environment
(
environment
)
visit_environment
(
environment
)
end
end
scenario
'shows environment name'
do
expect
(
page
).
to
have_content
(
environment
.
name
)
end
context
'without deployments'
do
context
'without deployments'
do
scenario
'does show no deployments'
do
scenario
'does show no deployments'
do
expect
(
page
).
to
have_content
(
'You don\'t have any deployments right now.'
)
expect
(
page
).
to
have_content
(
'You don\'t have any deployments right now.'
)
...
...
spec/features/environments_spec.rb
View file @
4840c682
...
@@ -194,7 +194,7 @@ feature 'Environments page', :feature, :js do
...
@@ -194,7 +194,7 @@ feature 'Environments page', :feature, :js do
end
end
scenario
'does create a new pipeline'
do
scenario
'does create a new pipeline'
do
expect
(
page
).
to
have_content
(
'
P
roduction'
)
expect
(
page
).
to
have_content
(
'
p
roduction'
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment