2012-09-10 15:35:23 +02:00
|
|
|
class ProjectNetworkGraph < Spinach::FeatureSteps
|
2012-09-10 17:35:03 +02:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedProject
|
|
|
|
|
2012-09-10 15:35:23 +02:00
|
|
|
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)
|
2012-09-10 15:35:23 +02:00
|
|
|
|
2012-10-31 14:22:13 +01:00
|
|
|
project = Project.find_by_name("Shop")
|
2012-09-10 15:35:23 +02:00
|
|
|
visit graph_project_path(project)
|
|
|
|
end
|
|
|
|
end
|