Add tests for commits graph

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-09-29 12:11:53 +03:00
parent 3a8cd1fa59
commit 83a21c33f1
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
2 changed files with 16 additions and 1 deletions

View File

@ -2,8 +2,13 @@ Feature: Project Graph
Background:
Given I sign in as a user
And I own project "Shop"
And I visit project "Shop" graph page
@javascript
Scenario: I should see project graphs
When I visit project "Shop" graph page
Then page should have graphs
@javascript
Scenario: I should see project commits graphs
When I visit project "Shop" commits graph page
Then page should have commits graphs

View File

@ -10,4 +10,14 @@ class Spinach::Features::ProjectGraph < Spinach::FeatureSteps
project = Project.find_by(name: "Shop")
visit project_graph_path(project, "master")
end
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
end