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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
e228dae8
Commit
e228dae8
authored
Dec 13, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec/workers/post_receive_spec.rb
parent
1d156c9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/workers/post_receive_spec.rb
spec/workers/post_receive_spec.rb
+2
-2
No files found.
spec/workers/post_receive_spec.rb
View file @
e228dae8
...
...
@@ -14,7 +14,7 @@ describe PostReceive do
let
(
:key_id
)
{
key
.
identifier
}
it
"fetches the correct project"
do
Project
.
should_receive
(
:find_
by_path
).
with
(
project
.
path_with_namespace
).
and_return
(
project
)
Project
.
should_receive
(
:find_
with_namespace
).
with
(
project
.
path_with_namespace
).
and_return
(
project
)
PostReceive
.
perform
(
pwd
(
project
),
'sha-old'
,
'sha-new'
,
'refs/heads/master'
,
key_id
)
end
...
...
@@ -28,7 +28,7 @@ describe PostReceive do
end
it
"asks the project to trigger all hooks"
do
Project
.
stub
(
find_
by_path
:
project
)
Project
.
stub
(
find_
with_namespace
:
project
)
project
.
should_receive
(
:execute_hooks
)
project
.
should_receive
(
:execute_services
)
project
.
should_receive
(
:update_merge_requests
)
...
...
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