gitlab-org--gitlab-foss/features/steps/project/project.rb
Dmitriy Zaporozhets b8b8a34b52
Fix 500 error when rename repository
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-23 13:19:13 +02:00

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