graph.rb 681 Bytes
Newer Older
1
class Spinach::Features::ProjectGraph < Spinach::FeatureSteps
2 3 4
  include SharedAuthentication
  include SharedProject

5
  step 'page should have graphs' do
6 7 8 9
    page.should have_selector ".stat-graph"
  end

  When 'I visit project "Shop" graph page' do
skv's avatar
skv committed
10
    project = Project.find_by(name: "Shop")
11
    visit project_graph_path(project, "master")
12
  end
13 14 15 16 17 18 19 20 21 22

  step 'I visit project "Shop" commits graph page' do
    project = Project.find_by(name: "Shop")
    visit commits_project_graph_path(project, "master")
  end

  step 'page should have commits graphs' do
    page.should have_content "Commits statistic for master"
    page.should have_content "Commits per day of month"
  end
23
end