diff options
| author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2015-12-07 22:41:18 -0200 |
|---|---|---|
| committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2015-12-07 22:41:18 -0200 |
| commit | f7aafd8fc8e1dd3a414e3827c42087b364ebd5a0 (patch) | |
| tree | 5b13c5d00dbc7590eec668b91b74fbc21b044f9f /features | |
| parent | 7d836a0c0ae2869a6b915234d347d15e25a511fe (diff) | |
| parent | e02940e32941cc253f713ef3fe0aac896c9342ac (diff) | |
| download | gitlab-ce-f7aafd8fc8e1dd3a414e3827c42087b364ebd5a0.tar.gz | |
Merge branch 'master' into fix-merge-request-that-removes-submodulefix-merge-request-that-removes-submodule
Diffstat (limited to 'features')
| -rw-r--r-- | features/project/merge_requests/accept.feature | 6 | ||||
| -rw-r--r-- | features/steps/project/hooks.rb | 4 | ||||
| -rw-r--r-- | features/steps/project/merge_requests/acceptance.rb | 4 |
3 files changed, 9 insertions, 5 deletions
diff --git a/features/project/merge_requests/accept.feature b/features/project/merge_requests/accept.feature index 3e6e59a3808..9bc2b7c8eca 100644 --- a/features/project/merge_requests/accept.feature +++ b/features/project/merge_requests/accept.feature @@ -8,10 +8,12 @@ Feature: Project Merge Requests Acceptance Given I am on the Merge Request detail page When I click on "Remove source branch" option And I click on Accept Merge Request - Then I should not see the Remove Source Branch button + Then I should see merge request merged + And I should not see the Remove Source Branch button @javascript Scenario: Accepting the Merge Request without removing the source branch Given I am on the Merge Request detail page When I click on Accept Merge Request - Then I should see the Remove Source Branch button + Then I should see merge request merged + And I should see the Remove Source Branch button diff --git a/features/steps/project/hooks.rb b/features/steps/project/hooks.rb index df4a23a3716..be4db770948 100644 --- a/features/steps/project/hooks.rb +++ b/features/steps/project/hooks.rb @@ -70,8 +70,6 @@ class Spinach::Features::ProjectHooks < Spinach::FeatureSteps step 'I should see hook service down error message' do expect(page).to have_selector '.flash-alert', - text: 'Hook execution failed. '\ - 'Ensure hook URL is correct and '\ - 'service is up.' + text: 'Hook execution failed: Exception from' end end diff --git a/features/steps/project/merge_requests/acceptance.rb b/features/steps/project/merge_requests/acceptance.rb index 6adecaa8385..383c055c4ef 100644 --- a/features/steps/project/merge_requests/acceptance.rb +++ b/features/steps/project/merge_requests/acceptance.rb @@ -32,4 +32,8 @@ class Spinach::Features::ProjectMergeRequestsAcceptance < Spinach::FeatureSteps step 'I am signed in as a developer of the project' do login_as(@user) end + + step 'I should see merge request merged' do + expect(page).to have_content('The changes were merged into') + end end |
