b8b8a34b52
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
27 lines
651 B
Ruby
27 lines
651 B
Ruby
class ProjectFeature < Spinach::FeatureSteps
|
|
include SharedAuthentication
|
|
include SharedProject
|
|
include SharedPaths
|
|
|
|
step 'change project settings' do
|
|
fill_in 'project_name', with: 'NewName'
|
|
uncheck 'project_issues_enabled'
|
|
end
|
|
|
|
step 'I save project' do
|
|
click_button 'Save changes'
|
|
end
|
|
|
|
step 'I should see project with new settings' do
|
|
find_field('project_name').value.should == 'NewName'
|
|
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
|