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