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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
ab6459ad
Commit
ab6459ad
authored
Sep 29, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a simple spec test.
parent
fbc6f95a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
spec/services/git_push_service_spec.rb
spec/services/git_push_service_spec.rb
+2
-0
No files found.
spec/services/git_push_service_spec.rb
View file @
ab6459ad
...
...
@@ -105,6 +105,8 @@ describe GitPushService do
context
"execute web hooks"
do
it
"when pushing a branch for the first time"
do
project
.
should_receive
(
:execute_hooks
)
project
.
default_branch
.
should
==
"master"
project
.
protected_branches
.
should_receive
(
:create
).
with
({
name:
"master"
})
service
.
execute
(
project
,
user
,
@blankrev
,
'newrev'
,
'refs/heads/master'
)
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