From af2a6ec1507e4145f14b0cbaccc7f75447c168cc Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Date: Mon, 21 Jul 2014 22:52:01 +0300 Subject: [PATCH] Add useless test. Uncomment when we improve testing Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> --- features/project/project.feature | 6 ++++++ features/steps/project/project.rb | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/features/project/project.feature b/features/project/project.feature index d561c6e440e..c1f192f123e 100644 --- a/features/project/project.feature +++ b/features/project/project.feature @@ -29,3 +29,9 @@ Feature: Project Feature When I visit project "Shop" page Then I should see project "Shop" README link And I should see project "Shop" version + + Scenario: I should change project default branch + When I visit edit project "Shop" page + And change project default branch + And I save project + Then I should see project default branch changed diff --git a/features/steps/project/project.rb b/features/steps/project/project.rb index 7c0b2509416..b6968152aaf 100644 --- a/features/steps/project/project.rb +++ b/features/steps/project/project.rb @@ -36,4 +36,15 @@ class ProjectFeature < Spinach::FeatureSteps 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 -- 2.30.9