Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <alexis.reigel.ext@siemens.com>2017-11-23 15:51:15 +0300
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2018-01-04 11:33:41 +0300
commit57e2488085b623e4b48a6b8518e844fa842b6f4a (patch)
treeec73646af39d4fd5ace2d18ea13c7d211471414c
parenta2655e3fbda186ea598f6649dee8bb5565d6b980 (diff)
we only need a test for the happy path
the failure case is already covered by the test in spec/services/test_hooks/system_service_spec.rb
-rw-r--r--spec/features/admin/admin_hooks_spec.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/features/admin/admin_hooks_spec.rb b/spec/features/admin/admin_hooks_spec.rb
index 197e6cd07c4..725e603d1e3 100644
--- a/spec/features/admin/admin_hooks_spec.rb
+++ b/spec/features/admin/admin_hooks_spec.rb
@@ -119,14 +119,6 @@ describe 'Admin::Hooks' do
WebMock.stub_request(:post, system_hook.url)
end
- it 'fails if the user does not have any repository with a merge request' do
- visit admin_hooks_path
- find('.hook-test-button.dropdown').click
- click_link 'Merge requests events'
-
- expect(page).to have_content 'Ensure one of your projects has merge requests.'
- end
-
it 'succeeds if the user has a repository with a merge request' do
project = create(:project, :repository)
create(:project_member, user: user, project: project)