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
Léo-Paul Géneau
gitlab-ce
Commits
83a21c33
Commit
83a21c33
authored
Sep 29, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for commits graph
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3a8cd1fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
features/project/graph.feature
features/project/graph.feature
+6
-1
features/steps/project/graph.rb
features/steps/project/graph.rb
+10
-0
No files found.
features/project/graph.feature
View file @
83a21c33
...
@@ -2,8 +2,13 @@ Feature: Project Graph
...
@@ -2,8 +2,13 @@ Feature: Project Graph
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
And
I own project
"Shop"
And
I own project
"Shop"
And
I visit project
"Shop"
graph page
@javascript
@javascript
Scenario
:
I
should see project graphs
Scenario
:
I
should see project graphs
When
I visit project
"Shop"
graph page
Then
page should have graphs
Then
page should have graphs
@javascript
Scenario
:
I
should see project commits graphs
When
I visit project
"Shop"
commits graph page
Then
page should have commits graphs
features/steps/project/graph.rb
View file @
83a21c33
...
@@ -10,4 +10,14 @@ class Spinach::Features::ProjectGraph < Spinach::FeatureSteps
...
@@ -10,4 +10,14 @@ class Spinach::Features::ProjectGraph < Spinach::FeatureSteps
project
=
Project
.
find_by
(
name:
"Shop"
)
project
=
Project
.
find_by
(
name:
"Shop"
)
visit
project_graph_path
(
project
,
"master"
)
visit
project_graph_path
(
project
,
"master"
)
end
end
step
'I visit project "Shop" commits graph page'
do
project
=
Project
.
find_by
(
name:
"Shop"
)
visit
commits_project_graph_path
(
project
,
"master"
)
end
step
'page should have commits graphs'
do
page
.
should
have_content
"Commits statistic for master"
page
.
should
have_content
"Commits per day of month"
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