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
777456b2
Commit
777456b2
authored
Aug 28, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
6b16f8a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
spec/services/git_push_service_spec.rb
spec/services/git_push_service_spec.rb
+4
-3
No files found.
spec/services/git_push_service_spec.rb
View file @
777456b2
...
@@ -91,19 +91,20 @@ describe GitPushService do
...
@@ -91,19 +91,20 @@ describe GitPushService do
end
end
end
end
context
"
does not
execute web hooks"
do
context
"execute web hooks"
do
before
do
before
do
@project_hook
=
create
(
:project_hook
)
@project_hook
=
create
(
:project_hook
)
project
.
hooks
<<
[
@project_hook
]
project
.
hooks
<<
[
@project_hook
]
stub_request
(
:post
,
@project_hook
.
url
)
end
end
it
"when pushing a branch for the first time"
do
it
"when pushing a branch for the first time"
do
@project_hook
.
should_
not_receive
(
:
execute
)
@project_hook
.
should_
receive
(
:async_
execute
)
service
.
execute
(
project
,
user
,
@blankrev
,
'newrev'
,
'refs/heads/master'
)
service
.
execute
(
project
,
user
,
@blankrev
,
'newrev'
,
'refs/heads/master'
)
end
end
it
"when pushing tags"
do
it
"when pushing tags"
do
@project_hook
.
should_not_receive
(
:execute
)
@project_hook
.
should_not_receive
(
:
async_
execute
)
service
.
execute
(
project
,
user
,
'newrev'
,
'newrev'
,
'refs/tags/v1.0.0'
)
service
.
execute
(
project
,
user
,
'newrev'
,
'newrev'
,
'refs/tags/v1.0.0'
)
end
end
end
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