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
82c3f626
Commit
82c3f626
authored
Sep 26, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up Compare feature step
parent
7df25e77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
features/project/commits/commits.feature
features/project/commits/commits.feature
+3
-3
features/steps/project/project_browse_commits.rb
features/steps/project/project_browse_commits.rb
+5
-7
No files found.
features/project/commits/commits.feature
View file @
82c3f626
Feature
:
Project Browse commits
Feature
:
Project Browse commits
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
And
I own
project
"Shop"
And
I own
a project
Given
I visit project
commits page
And
I visit my project's
commits page
Scenario
:
I
browse commits list for master branch
Scenario
:
I
browse commits list for master branch
Then
I see project commits
Then
I see project commits
...
@@ -18,4 +18,4 @@ Feature: Project Browse commits
...
@@ -18,4 +18,4 @@ Feature: Project Browse commits
Scenario
:
I
compare refs
Scenario
:
I
compare refs
Given
I visit compare refs page
Given
I visit compare refs page
And
I fill compare fields with refs
And
I fill compare fields with refs
And
I see compared refs
Then
I see compared refs
features/steps/project/project_browse_commits.rb
View file @
82c3f626
...
@@ -4,8 +4,6 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
...
@@ -4,8 +4,6 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
include
SharedPaths
include
SharedPaths
Then
'I see project commits'
do
Then
'I see project commits'
do
current_path
.
should
==
project_commits_path
(
@project
)
commit
=
@project
.
commit
commit
=
@project
.
commit
page
.
should
have_content
(
@project
.
name
)
page
.
should
have_content
(
@project
.
name
)
page
.
should
have_content
(
commit
.
message
)
page
.
should
have_content
(
commit
.
message
)
...
@@ -34,14 +32,14 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
...
@@ -34,14 +32,14 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
end
end
And
'I fill compare fields with refs'
do
And
'I fill compare fields with refs'
do
fill_in
"from"
,
:with
=>
"master
"
fill_in
"from"
,
with:
"bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a
"
fill_in
"to"
,
:with
=>
"stable
"
fill_in
"to"
,
with:
"8716fc78f3c65bbf7bcf7b574febd583bc5d2812
"
click_button
"Compare"
click_button
"Compare"
end
end
And
'I see compared refs'
do
Then
'I see compared refs'
do
page
.
should
have_content
"Commits (27)"
page
.
should
have_content
"Compare View"
page
.
should
have_content
"Compare View"
page
.
should
have_content
"Showing 73 changed files"
page
.
should
have_content
"Commits (1)"
page
.
should
have_content
"Showing 2 changed files"
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