Fixed protected branches and file edit
This commit is contained in:
parent
afbdbb0c95
commit
ef5b36eaaf
9 changed files with 21 additions and 20 deletions
|
@ -3,13 +3,13 @@ class CreateProject < Spinach::FeatureSteps
|
|||
include SharedPaths
|
||||
|
||||
And 'fill project form with valid data' do
|
||||
fill_in 'project_name', :with => 'NewProject'
|
||||
fill_in 'project_name', with: 'Empty'
|
||||
click_button "Create project"
|
||||
end
|
||||
|
||||
Then 'I should see project page' do
|
||||
current_path.should == project_path(Project.last)
|
||||
page.should have_content "NewProject"
|
||||
page.should have_content "Empty"
|
||||
end
|
||||
|
||||
And 'I should see empty project instuctions' do
|
||||
|
|
|
@ -48,7 +48,7 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
|
|||
page.should have_selector('ul.breadcrumb span.divider', count: 3)
|
||||
page.should have_selector('ul.breadcrumb a', count: 4)
|
||||
|
||||
find('ul.breadcrumb li:first a')['href'].should match(/#{@project.path}\/commits\/master\z/)
|
||||
find('ul.breadcrumb li:first a')['href'].should match(/#{@project.path_with_namespace}\/commits\/master\z/)
|
||||
find('ul.breadcrumb li:last a')['href'].should match(%r{master/app/models/project\.rb\z})
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue