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
96f379c4
Commit
96f379c4
authored
Jul 17, 2019
by
syasonik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unit tests
parent
bd0b294f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/spec/services/incident_management/create_issue_service_spec.rb
...services/incident_management/create_issue_service_spec.rb
+3
-3
No files found.
ee/spec/services/incident_management/create_issue_service_spec.rb
View file @
96f379c4
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
describe
IncidentManagement
::
CreateIssueService
do
s
et
(
:project
)
{
create
(
:project
,
:repository
)
}
l
et
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:service
)
{
described_class
.
new
(
project
,
nil
,
alert_payload
)
}
let
(
:alert_starts_at
)
{
Time
.
now
}
let
(
:alert_title
)
{
'TITLE'
}
...
...
@@ -20,7 +20,7 @@ describe IncidentManagement::CreateIssueService do
Gitlab
::
Alerting
::
Alert
.
new
(
project:
project
,
payload:
alert_payload
).
present
end
set
(
:setting
)
do
let!
(
:setting
)
do
create
(
:project_incident_management_setting
,
project:
project
)
end
...
...
@@ -113,7 +113,7 @@ describe IncidentManagement::CreateIssueService do
expect
(
issue
.
description
).
to
include
(
alert_presenter
.
issue_summary_markdown
)
expect
(
issue
.
description
).
to
include
(
template_content
)
expect
(
issue
.
description
).
to
include
(
alt_template
)
expect
(
issue
.
description
.
count
(
summary_separator
)
).
to
eq
(
2
)
expect
(
issue
.
description
.
scan
(
summary_separator
).
size
).
to
eq
(
2
)
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