Fix branches tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-05-24 14:20:12 +03:00
parent 1bb9aeb565
commit 5a1429ae21
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
3 changed files with 8 additions and 12 deletions

View file

@ -3,20 +3,17 @@ Feature: Project Browse branches
Given I sign in as a user
And I own project "Shop"
And project "Shop" has protected branches
Given I visit project branches page
Scenario: I can see project recent git branches
Then I should see "Shop" recent branches list
Scenario: I can see project all git branches
Given I click link "All"
Given I visit project branches page
Then I should see "Shop" all branches list
Scenario: I can see project protected git branches
Given I click link "Protected"
Given I visit project protected branches page
Then I should see "Shop" protected branches list
Scenario: I create a branch
Given I click new branch link
Given I visit project branches page
And I click new branch link
When I submit new branch form
Then I should see new branch created

View file

@ -3,11 +3,6 @@ class ProjectBrowseBranches < Spinach::FeatureSteps
include SharedProject
include SharedPaths
step 'I should see "Shop" recent branches list' do
page.should have_content "Branches"
page.should have_content "master"
end
step 'I click link "All"' do
click_link "All"
end

View file

@ -240,6 +240,10 @@ module SharedPaths
visit project_branches_path(@project)
end
step 'I visit project protected branches page' do
visit project_protected_branches_path(@project)
end
step 'I visit compare refs page' do
visit project_compare_index_path(@project)
end