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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
fca161f5
Commit
fca161f5
authored
Dec 25, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
99e52c9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+1
-1
features/steps/project/commits/commits.rb
features/steps/project/commits/commits.rb
+3
-3
features/steps/project/merge_requests.rb
features/steps/project/merge_requests.rb
+5
-1
No files found.
app/views/projects/merge_requests/_show.html.haml
View file @
fca161f5
...
...
@@ -41,7 +41,7 @@
Discussion
%span
.badge
=
@merge_request
.
mr_and_commit_notes
.
count
%li
.commits-tab
{
data:
{
action:
'commits'
}}
=
link_to
project_merge_request_path
(
@project
,
@merge_request
)
do
=
link_to
project_merge_request_path
(
@project
,
@merge_request
)
,
title:
'Commits'
do
%i
.fa.fa-database
Commits
%span
.badge
=
@commits
.
size
...
...
features/steps/project/commits/commits.rb
View file @
fca161f5
...
...
@@ -78,14 +78,14 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
end
step
'I click side-by-side diff button'
do
click_link
"Side-by-side
Diff
"
click_link
"Side-by-side"
end
step
'I see side-by-side diff button'
do
page
.
should
have_content
"Side-by-side
Diff
"
page
.
should
have_content
"Side-by-side"
end
step
'I see inline diff button'
do
page
.
should
have_content
"Inline
Diff
"
page
.
should
have_content
"Inline"
end
end
features/steps/project/merge_requests.rb
View file @
fca161f5
...
...
@@ -109,6 +109,10 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
step
'I click on the commit in the merge request'
do
within
'.merge-request-tabs'
do
click_link
'Commits'
end
within
'.mr-commits'
do
click_link
Commit
.
truncate_sha
(
sample_commit
.
id
)
end
...
...
@@ -261,7 +265,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
step
'I click Side-by-side Diff tab'
do
click_link
'Side-by-side
Diff
'
click_link
'Side-by-side'
end
step
'I should see comments on the side-by-side diff page'
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