debian-mirror-gitlab/features/steps/project/graph.rb

24 lines
751 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
class Spinach::Features::ProjectGraph < Spinach::FeatureSteps
2014-09-02 18:07:02 +05:30
include SharedAuthentication
include SharedProject
2015-04-26 12:48:37 +05:30
step 'page should have graphs' do
2015-09-11 14:41:01 +05:30
expect(page).to have_selector ".stat-graph"
2014-09-02 18:07:02 +05:30
end
When 'I visit project "Shop" graph page' do
project = Project.find_by(name: "Shop")
2015-04-26 12:48:37 +05:30
visit namespace_project_graph_path(project.namespace, project, "master")
end
step 'I visit project "Shop" commits graph page' do
project = Project.find_by(name: "Shop")
visit commits_namespace_project_graph_path(project.namespace, project, "master")
end
step 'page should have commits graphs' do
2015-09-11 14:41:01 +05:30
expect(page).to have_content "Commit statistics for master"
expect(page).to have_content "Commits per day of month"
2014-09-02 18:07:02 +05:30
end
end