Commit f4845d6b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Uncomment change branch test

parent 43d570e0
...@@ -33,18 +33,16 @@ class ProjectFeature < Spinach::FeatureSteps ...@@ -33,18 +33,16 @@ class ProjectFeature < Spinach::FeatureSteps
step 'I should see project "Shop" version' do step 'I should see project "Shop" version' do
within '.project-side' do within '.project-side' do
page.should have_content "Version: 2.2.0" page.should have_content "Version: 6.7.0.pre"
end end
end end
step 'change project default branch' do step 'change project default branch' do
select 'stable', from: 'project_default_branch' select 'fix', from: 'project_default_branch'
click_button 'Save changes'
end end
step 'I should see project default branch changed' do step 'I should see project default branch changed' do
# TODO: Uncomment this when we can do real gitlab-shell calls find(:css, 'select#project_default_branch').value.should == 'fix'
# 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
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment