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
e4b997a5
Commit
e4b997a5
authored
Jul 09, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicit context for Jira Server spec
parent
8cc1b55f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
ee/spec/serializers/integrations/jira/issue_entity_spec.rb
ee/spec/serializers/integrations/jira/issue_entity_spec.rb
+12
-5
No files found.
ee/spec/serializers/integrations/jira/issue_entity_spec.rb
View file @
e4b997a5
...
...
@@ -8,7 +8,7 @@ RSpec.describe Integrations::Jira::IssueEntity do
let
(
:reporter
)
do
double
(
'displayName'
=>
'reporter'
,
'name'
=>
'reporter@reporter.com'
'name'
=>
double
)
end
...
...
@@ -43,10 +43,7 @@ RSpec.describe Integrations::Jira::IssueEntity do
text_color:
'#FFFFFF'
}
],
author:
{
name:
'reporter'
,
web_url:
'http://jira.com/secure/ViewProfile.jspa?name=reporter@reporter.com'
},
author:
hash_including
(
name:
'reporter'
),
assignees:
[
{
name:
'assignee'
}
],
...
...
@@ -56,6 +53,16 @@ RSpec.describe Integrations::Jira::IssueEntity do
)
end
context
'with Jira Server configuration'
do
before
do
allow
(
reporter
).
to
receive
(
:name
).
and_return
(
'reporter@reporter.com'
)
end
it
'returns the Jira Server profile URL'
do
expect
(
subject
[
:author
]).
to
include
(
web_url:
'http://jira.com/secure/ViewProfile.jspa?name=reporter@reporter.com'
)
end
end
context
'with Jira Cloud configuration'
do
before
do
allow
(
reporter
).
to
receive
(
:accountId
).
and_return
(
'12345'
)
...
...
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