refactor feature steps
This commit is contained in:
parent
ef4e9c24d3
commit
79eb5ab396
34 changed files with 270 additions and 376 deletions
22
features/steps/project/create_project.rb
Normal file
22
features/steps/project/create_project.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
class CreateProject < Spinach::FeatureSteps
|
||||
include SharedAuthentication
|
||||
include SharedPaths
|
||||
|
||||
And 'fill project form with valid data' do
|
||||
fill_in 'project_name', :with => 'NewProject'
|
||||
fill_in 'project_code', :with => 'NPR'
|
||||
fill_in 'project_path', :with => 'newproject'
|
||||
click_button "Create project"
|
||||
end
|
||||
|
||||
Then 'I should see project page' do
|
||||
current_path.should == project_path(Project.last)
|
||||
page.should have_content "NewProject"
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue