BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
57e24880
Commit
57e24880
authored
Nov 23, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain 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
parent
a2655e3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
admin_hooks_spec.rb
spec/features/admin/admin_hooks_spec.rb
+0
-8
No files found.
spec/features/admin/admin_hooks_spec.rb
View file @
57e24880
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment