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
6745a5e5
Commit
6745a5e5
authored
Jun 16, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cucumber -> Network graph feature
parent
781fd1a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
.travis.yml
.travis.yml
+1
-0
features/projects/network.feature
features/projects/network.feature
+12
-0
features/step_definitions/projects_steps.rb
features/step_definitions/projects_steps.rb
+16
-0
No files found.
.travis.yml
View file @
6745a5e5
...
@@ -16,5 +16,6 @@ before_script:
...
@@ -16,5 +16,6 @@ before_script:
-
"
bundle
exec
rake
db:create
RAILS_ENV=test"
-
"
bundle
exec
rake
db:create
RAILS_ENV=test"
-
"
bundle
exec
rake
db:migrate
RAILS_ENV=test"
-
"
bundle
exec
rake
db:migrate
RAILS_ENV=test"
-
"
bundle
exec
rake
db:seed_fu
RAILS_ENV=test"
-
"
bundle
exec
rake
db:seed_fu
RAILS_ENV=test"
-
"
export
DISPLAY=:99.0"
-
"
sh
-e
/etc/init.d/xvfb
start"
-
"
sh
-e
/etc/init.d/xvfb
start"
script
:
"
bundle
exec
rake
gitlab:test"
script
:
"
bundle
exec
rake
gitlab:test"
features/projects/network.feature
View file @
6745a5e5
@javascript
Feature
:
Project Network Graph
Background
:
Given
I signin as a user
And
I own project
"Shop"
And
I visit project
"Shop"
network page
Scenario
:
I
should see project network
Then
page should have network graph
features/step_definitions/projects_steps.rb
View file @
6745a5e5
...
@@ -50,3 +50,19 @@ Given /^I write new comment "(.*?)"$/ do |arg1|
...
@@ -50,3 +50,19 @@ Given /^I write new comment "(.*?)"$/ do |arg1|
click_button
"Add Comment"
click_button
"Add Comment"
end
end
Given
/^I visit project "(.*?)" network page$/
do
|
arg1
|
project
=
Project
.
find_by_name
(
arg1
)
visit
graph_project_path
(
project
)
end
Given
/^show me page$/
do
save_and_open_page
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..."
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