Uncomment change branch test

This commit is contained in:
Dmitriy Zaporozhets 2014-07-31 15:39:44 +03:00
parent 43d570e0ce
commit f4845d6b7c

View file

@ -33,18 +33,16 @@ class ProjectFeature < Spinach::FeatureSteps
step 'I should see project "Shop" version' do
within '.project-side' do
page.should have_content "Version: 2.2.0"
page.should have_content "Version: 6.7.0.pre"
end
end
step 'change project default branch' do
select 'stable', from: 'project_default_branch'
select 'fix', from: 'project_default_branch'
click_button 'Save changes'
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'
find(:css, 'select#project_default_branch').value.should == 'fix'
end
end