| ... | @@ -3,16 +3,25 @@ class ProjectFeature < Spinach::FeatureSteps |
... | @@ -3,16 +3,25 @@ class ProjectFeature < Spinach::FeatureSteps |
|
|
include SharedProject
|
|
include SharedProject
|
|
|
include SharedPaths
|
|
include SharedPaths
|
|
|
|
|
|
|
|
And 'change project settings' do
|
|
step 'change project settings' do
|
|
|
fill_in 'project_name', with: 'NewName'
|
|
fill_in 'project_name', with: 'NewName'
|
|
|
uncheck 'project_issues_enabled'
|
|
uncheck 'project_issues_enabled'
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
And 'I save project' do
|
|
step 'I save project' do
|
|
|
click_button 'Save changes'
|
|
click_button 'Save changes'
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
Then 'I should see project with new settings' do
|
|
step 'I should see project with new settings' do
|
|
|
find_field('project_name').value.should == 'NewName'
|
|
find_field('project_name').value.should == 'NewName'
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
step 'change project path settings' do
|
|
|
|
fill_in "project_path", with: "new-path"
|
|
|
|
click_button "Rename"
|
|
|
|
end
|
|
|
|
|
|
|
|
step 'I should see project with new path settings' do
|
|
|
|
project.path.should == "new-path"
|
|
|
|
end
|
|
|
end |
|
end |