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
Léo-Paul Géneau
gitlab-ce
Commits
1d7f6f9f
Commit
1d7f6f9f
authored
Sep 12, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change committer back to user for spec
changed in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13984/
parent
d1f4f4ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+3
-3
No files found.
spec/models/repository_spec.rb
View file @
1d7f6f9f
...
...
@@ -931,7 +931,7 @@ describe Repository, models: true do
service
=
GitHooksService
.
new
expect
(
GitHooksService
).
to
receive
(
:new
).
and_return
(
service
)
expect
(
service
).
to
receive
(
:execute
)
.
with
(
committ
er
,
target_repository
,
old_rev
,
new_rev
,
updating_ref
)
.
with
(
us
er
,
target_repository
,
old_rev
,
new_rev
,
updating_ref
)
.
and_yield
(
service
).
and_return
(
true
)
end
...
...
@@ -973,7 +973,7 @@ describe Repository, models: true do
expect
(
target_project
.
repository
).
to
receive
(
:fetch_ref
)
.
and_call_original
GitOperationService
.
new
(
committ
er
,
target_repository
)
GitOperationService
.
new
(
us
er
,
target_repository
)
.
with_branch
(
'master'
,
start_project:
project
,
...
...
@@ -989,7 +989,7 @@ describe Repository, models: true do
it
'does not fetch_ref and just pass the commit'
do
expect
(
target_repository
).
not_to
receive
(
:fetch_ref
)
GitOperationService
.
new
(
committ
er
,
target_repository
)
GitOperationService
.
new
(
us
er
,
target_repository
)
.
with_branch
(
'feature'
,
start_project:
project
)
{
new_rev
}
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