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
3d23899c
Commit
3d23899c
authored
Jul 25, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in git_push_service_spec
parent
9693e220
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
spec/services/git_push_service_spec.rb
spec/services/git_push_service_spec.rb
+0
-37
No files found.
spec/services/git_push_service_spec.rb
View file @
3d23899c
...
...
@@ -536,7 +536,6 @@ describe GitPushService, services: true do
let
(
:message
)
{
"this is some work.
\n\n
closes #1"
}
it
"does not initiates one api call to jira server to close the issue"
do
<<<<<<<
HEAD
execute_service
(
project
,
commit_author
,
oldrev
,
newrev
,
ref
)
expect
(
WebMock
).
not_to
have_requested
(
:post
,
jira_api_transition_url
(
'JIRA-1'
))
...
...
@@ -563,34 +562,6 @@ describe GitPushService, services: true do
it
"initiates one api call to jira server to comment on the jira issue"
do
execute_service
(
project
,
commit_author
,
oldrev
,
newrev
,
ref
)
=======
execute_service
(
project
,
commit_author
,
@oldrev
,
@newrev
,
@ref
)
expect
(
WebMock
).
not_to
have_requested
(
:post
,
jira_api_transition_url
(
'JIRA-1'
))
end
it
"does not initiates one api call to jira server to comment on the issue"
do
execute_service
(
project
,
commit_author
,
@oldrev
,
@newrev
,
@ref
)
expect
(
WebMock
).
not_to
have_requested
(
:post
,
jira_api_comment_url
(
'JIRA-1'
)).
with
(
body:
comment_body
).
once
end
end
context
'when internal issues are enabled'
do
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:message
)
{
"this is some work.
\n\n
closes JIRA-1
\n\n
closes
#{
issue
.
to_reference
}
"
}
it
"initiates one api call to jira server to close the jira issue"
do
execute_service
(
project
,
commit_author
,
@oldrev
,
@newrev
,
@ref
)
expect
(
WebMock
).
to
have_requested
(
:post
,
jira_api_transition_url
(
'JIRA-1'
)).
once
end
it
"initiates one api call to jira server to comment on the jira issue"
do
execute_service
(
project
,
commit_author
,
@oldrev
,
@newrev
,
@ref
)
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
expect
(
WebMock
).
to
have_requested
(
:post
,
jira_api_comment_url
(
'JIRA-1'
)).
with
(
body:
comment_body
...
...
@@ -598,22 +569,14 @@ describe GitPushService, services: true do
end
it
"closes the internal issue"
do
<<<<<<<
HEAD
execute_service
(
project
,
commit_author
,
oldrev
,
newrev
,
ref
)
=======
execute_service
(
project
,
commit_author
,
@oldrev
,
@newrev
,
@ref
)
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
expect
(
issue
.
reload
).
to
be_closed
end
it
"adds a note indicating that the issue is now closed"
do
expect
(
SystemNoteService
).
to
receive
(
:change_status
)
.
with
(
issue
,
project
,
commit_author
,
"closed"
,
closing_commit
)
<<<<<<<
HEAD
execute_service
(
project
,
commit_author
,
oldrev
,
newrev
,
ref
)
=======
execute_service
(
project
,
commit_author
,
@oldrev
,
@newrev
,
@ref
)
>>>>>>>
d964816b9fe56679ffc0b331e701f7b24db5c6a9
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