Commit c207b9e0 authored by Phil Hughes's avatar Phil Hughes

Tests update

parent 85a5e425
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
%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")
- if can?(current_user, :create_environment, @project)
= link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do = link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do
New environment New environment
- else - else
......
...@@ -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('production') expect(page).to have_content('Production')
end end
end end
......
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