Commit 6745a5e5 authored by randx's avatar randx

Cucumber -> Network graph feature

parent 781fd1a8
...@@ -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"
@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
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment