Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0f255668
Commit
0f255668
authored
Aug 22, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve system hook spec in spec/services/git_push_service_spec.rb
parent
f3d9e19b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/services/git_push_service_spec.rb
spec/services/git_push_service_spec.rb
+3
-3
No files found.
spec/services/git_push_service_spec.rb
View file @
0f255668
...
...
@@ -224,11 +224,11 @@ describe GitPushService, services: true do
end
describe
'system hooks'
do
let
(
:system_hook
_service
)
{
double
()
}
let
(
:system_hook
s_service
)
{
SystemHooksService
.
new
}
it
"sends a system hook after pushing a branch"
do
expect
(
SystemHooksService
).
to
receive
(
:new
).
and_return
(
system_hook_service
)
expect
(
system_hook_service
).
to
receive
(
:execute_hooks
).
with
(
push_data
,
:push_hooks
)
expect
(
SystemHooksService
).
to
receive
(
:new
).
and_return
(
system_hook
s
_service
)
expect
(
system_hook
s
_service
).
to
receive
(
:execute_hooks
).
with
(
push_data
,
:push_hooks
)
execute_service
(
project
,
user
,
oldrev
,
newrev
,
ref
)
end
...
...
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