Commit 786b5a59 authored by Alexis Reigel's avatar Alexis Reigel

use short project path helpers

parent 895efdfb
...@@ -215,7 +215,7 @@ describe 'Commits' do ...@@ -215,7 +215,7 @@ describe 'Commits' do
sign_in(user) sign_in(user)
visit namespace_project_commits_path(project.namespace, project, :'signed-commits') visit project_commits_path(project, :'signed-commits')
within '#commits-list' do within '#commits-list' do
expect(page).to have_content 'Unverified' expect(page).to have_content 'Unverified'
...@@ -228,7 +228,7 @@ describe 'Commits' do ...@@ -228,7 +228,7 @@ describe 'Commits' do
user.update_attributes!(email: GpgHelpers::User1.emails.first) user.update_attributes!(email: GpgHelpers::User1.emails.first)
end end
visit namespace_project_commits_path(project.namespace, project, :'signed-commits') visit project_commits_path(project, :'signed-commits')
within '#commits-list' do within '#commits-list' do
expect(page).to have_content 'Unverified' expect(page).to have_content 'Unverified'
...@@ -242,7 +242,7 @@ describe 'Commits' do ...@@ -242,7 +242,7 @@ describe 'Commits' do
sign_in(user) sign_in(user)
visit namespace_project_commits_path(project.namespace, project, :'signed-commits') visit project_commits_path(project, :'signed-commits')
within '#commits-list' do within '#commits-list' do
expect(page).to have_content 'Unverified' expect(page).to have_content 'Unverified'
...@@ -254,7 +254,7 @@ describe 'Commits' do ...@@ -254,7 +254,7 @@ describe 'Commits' do
create :gpg_key, key: GpgHelpers::User1.public_key, user: user create :gpg_key, key: GpgHelpers::User1.public_key, user: user
end end
visit namespace_project_commits_path(project.namespace, project, :'signed-commits') visit project_commits_path(project, :'signed-commits')
within '#commits-list' do within '#commits-list' do
expect(page).to have_content 'Unverified' expect(page).to have_content 'Unverified'
...@@ -272,7 +272,7 @@ describe 'Commits' do ...@@ -272,7 +272,7 @@ describe 'Commits' do
project.team << [user, :master] project.team << [user, :master]
sign_in(user) sign_in(user)
visit namespace_project_commits_path(project.namespace, project, :'signed-commits') visit project_commits_path(project, :'signed-commits')
# unverified signature # unverified signature
click_on 'Unverified', match: :first click_on 'Unverified', match: :first
...@@ -293,7 +293,7 @@ describe 'Commits' do ...@@ -293,7 +293,7 @@ describe 'Commits' do
# verified and the gpg user's profile doesn't exist anymore # verified and the gpg user's profile doesn't exist anymore
gpg_user.destroy! gpg_user.destroy!
visit namespace_project_commits_path(project.namespace, project, :'signed-commits') visit project_commits_path(project, :'signed-commits')
click_on 'Verified' click_on 'Verified'
within '.popover' do within '.popover' do
......
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