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
Boxiang Sun
gitlab-ce
Commits
786b5a59
Commit
786b5a59
authored
Jul 20, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use short project path helpers
parent
895efdfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/features/commits_spec.rb
spec/features/commits_spec.rb
+6
-6
No files found.
spec/features/commits_spec.rb
View file @
786b5a59
...
@@ -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
...
...
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