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
Kazuhiko Shiozaki
gitlab-ce
Commits
c110c9bd
Commit
c110c9bd
authored
Feb 17, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactored spec
parent
5255a54d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
spec/services/git_push_service_spec.rb
spec/services/git_push_service_spec.rb
+12
-9
No files found.
spec/services/git_push_service_spec.rb
View file @
c110c9bd
...
@@ -14,11 +14,18 @@ describe GitPushService, services: true do
...
@@ -14,11 +14,18 @@ describe GitPushService, services: true do
end
end
describe
'Push branches'
do
describe
'Push branches'
do
context
'new branch'
do
let
(
:oldrev
)
{
@oldrev
}
let
(
:newrev
)
{
@newrev
}
subject
do
subject
do
execute_service
(
project
,
user
,
@blankrev
,
@
newrev
,
@ref
)
execute_service
(
project
,
user
,
oldrev
,
newrev
,
@ref
)
end
end
context
'new branch'
do
let
(
:oldrev
)
{
@blankrev
}
it
{
is_expected
.
to
be_truthy
}
it
{
is_expected
.
to
be_truthy
}
it
'flushes general cached data'
do
it
'flushes general cached data'
do
...
@@ -35,9 +42,6 @@ describe GitPushService, services: true do
...
@@ -35,9 +42,6 @@ describe GitPushService, services: true do
end
end
context
'existing branch'
do
context
'existing branch'
do
subject
do
execute_service
(
project
,
user
,
@oldrev
,
@newrev
,
@ref
)
end
it
{
is_expected
.
to
be_truthy
}
it
{
is_expected
.
to
be_truthy
}
...
@@ -49,9 +53,8 @@ describe GitPushService, services: true do
...
@@ -49,9 +53,8 @@ describe GitPushService, services: true do
end
end
context
'rm branch'
do
context
'rm branch'
do
subject
do
execute_service
(
project
,
user
,
@oldrev
,
@blankrev
,
@ref
)
let
(
:newrev
)
{
@blankrev
}
end
it
{
is_expected
.
to
be_truthy
}
it
{
is_expected
.
to
be_truthy
}
...
...
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