gitlabhq/features/steps/project/project_network_graph.rb

20 lines
557 B
Ruby
Raw Normal View History

class ProjectNetworkGraph < Spinach::FeatureSteps
2012-09-10 17:35:03 +02:00
include SharedAuthentication
include SharedProject
Then 'page should have network graph' do
page.should have_content "Project Network Graph"
within ".graph" do
page.should have_content "master"
end
end
And 'I visit project "Shop" network page' do
2012-11-04 22:43:33 +01:00
# Stub Graph::JsonBuilder max_size to speed up test (10 commits vs. 650)
Gitlab::Graph::JsonBuilder.stub(max_count: 10)
project = Project.find_by_name("Shop")
2013-01-31 05:22:08 +01:00
visit project_graph_path(project, "master")
end
end