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
d862ebd3
Commit
d862ebd3
authored
Aug 21, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1266 from tsigo/cucumber_speedup
Speed up the "Project Network Graph" cucumber feature
parents
3784f134
6baf9c44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
features/projects/network.feature
features/projects/network.feature
+1
-3
features/step_definitions/project/projects_steps.rb
features/step_definitions/project/projects_steps.rb
+7
-2
features/support/env.rb
features/support/env.rb
+2
-0
No files found.
features/projects/network.feature
View file @
d862ebd3
...
...
@@ -4,9 +4,7 @@ Feature: Project Network Graph
Background
:
Given
I signin as a user
And
I own project
"Shop"
And
I visit project
"Shop"
network page
And
I visit project
"Shop"
network page
Scenario
:
I
should see project network
Then
page should have network graph
features/step_definitions/project/projects_steps.rb
View file @
d862ebd3
...
...
@@ -57,6 +57,11 @@ end
Given
/^I visit project "(.*?)" network page$/
do
|
arg1
|
project
=
Project
.
find_by_name
(
arg1
)
# Stub out find_all to speed this up (10 commits vs. 650)
commits
=
Grit
::
Commit
.
find_all
(
project
.
repo
,
nil
,
{
max_count:
10
})
Grit
::
Commit
.
stub
(
:find_all
).
and_return
(
commits
)
visit
graph_project_path
(
project
)
end
...
...
@@ -67,8 +72,8 @@ end
Given
/^page should have network graph$/
do
page
.
should
have_content
"Project Network Graph"
within
".graph"
do
page
.
should
have_content
"
stable
"
page
.
should
have_content
"
notes_refacto
..."
page
.
should
have_content
"
master
"
page
.
should
have_content
"
scss_refactor
..."
end
end
...
...
features/support/env.rb
View file @
d862ebd3
...
...
@@ -44,3 +44,5 @@ require 'headless'
headless
=
Headless
.
new
headless
.
start
require
'cucumber/rspec/doubles'
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