af2a6ec150
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
50 lines
1.3 KiB
Ruby
50 lines
1.3 KiB
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
|
|
|
|
step 'I should see project "Shop" README link' do
|
|
within '.project-side' do
|
|
page.should have_content "README.md"
|
|
end
|
|
end
|
|
|
|
step 'I should see project "Shop" version' do
|
|
within '.project-side' do
|
|
page.should have_content "Version: 2.2.0"
|
|
end
|
|
end
|
|
|
|
step 'change project default branch' do
|
|
select 'stable', from: 'project_default_branch'
|
|
end
|
|
|
|
step 'I should see project default branch changed' do
|
|
# TODO: Uncomment this when we can do real gitlab-shell calls
|
|
# from spinach tests. Right now gitlab-shell calls are stubbed so this test
|
|
# will not pass
|
|
# find(:css, 'select#project_default_branch').value.should == 'stable'
|
|
end
|
|
end
|