gitlabhq/features/steps/project/project_network_graph.rb
2012-10-31 15:22:13 +02:00

20 lines
583 B
Ruby

class ProjectNetworkGraph < Spinach::FeatureSteps
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"
page.should have_content "scss_refactor..."
end
end
And 'I visit project "Shop" network page' do
# Stub GraphCommit max_size to speed up test (10 commits vs. 650)
Gitlab::GraphCommit.stub(max_count: 10)
project = Project.find_by_name("Shop")
visit graph_project_path(project)
end
end