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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
c207b9e0
Commit
c207b9e0
authored
Jun 21, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests update
parent
85a5e425
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+3
-2
spec/features/environments_spec.rb
spec/features/environments_spec.rb
+2
-2
No files found.
app/views/projects/environments/index.html.haml
View file @
c207b9e0
...
@@ -18,8 +18,9 @@
...
@@ -18,8 +18,9 @@
%br
%br
=
succeed
"."
do
=
succeed
"."
do
=
link_to
"Read more about environments"
,
help_page_path
(
"ci"
,
"environments"
)
=
link_to
"Read more about environments"
,
help_page_path
(
"ci"
,
"environments"
)
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
-
if
can?
(
current_user
,
:create_environment
,
@project
)
New environment
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
New environment
-
else
-
else
.table-holder
.table-holder
%table
.table.environments
%table
.table.environments
...
...
spec/features/environments_spec.rb
View file @
c207b9e0
...
@@ -33,7 +33,7 @@ feature 'Environments', feature: true do
...
@@ -33,7 +33,7 @@ feature 'Environments', feature: true do
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
(
'
No deployments yet
'
)
end
end
end
end
...
@@ -108,7 +108,7 @@ feature 'Environments', feature: true do
...
@@ -108,7 +108,7 @@ feature 'Environments', feature: true 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