2012-09-10 15:35:23 +02:00
|
|
|
class CreateProject < Spinach::FeatureSteps
|
2012-09-10 17:35:03 +02:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedPaths
|
2012-09-10 15:35:23 +02:00
|
|
|
|
|
|
|
And 'fill project form with valid data' do
|
|
|
|
fill_in 'project_name', :with => 'NewProject'
|
|
|
|
click_button "Create project"
|
|
|
|
end
|
|
|
|
|
|
|
|
Then 'I should see project page' do
|
|
|
|
current_path.should == project_path(Project.last)
|
2012-09-10 17:35:03 +02:00
|
|
|
page.should have_content "NewProject"
|
2012-09-10 15:35:23 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
And 'I should see empty project instuctions' do
|
|
|
|
page.should have_content "git init"
|
|
|
|
page.should have_content "git remote"
|
|
|
|
page.should have_content Project.last.url_to_repo
|
|
|
|
end
|
|
|
|
end
|