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
10379f89
Commit
10379f89
authored
Sep 04, 2019
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move subject below lets in specs
parent
55f395ea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ee/spec/lib/gitlab/alerting/notification_payload_parser_spec.rb
...c/lib/gitlab/alerting/notification_payload_parser_spec.rb
+2
-2
ee/spec/services/projects/alerting/notify_service_spec.rb
ee/spec/services/projects/alerting/notify_service_spec.rb
+2
-2
No files found.
ee/spec/lib/gitlab/alerting/notification_payload_parser_spec.rb
View file @
10379f89
...
...
@@ -4,8 +4,6 @@ require 'fast_spec_helper'
describe
Gitlab
::
Alerting
::
NotificationPayloadParser
do
describe
'.call'
do
subject
{
described_class
.
call
(
payload
)
}
let
(
:starts_at
)
{
Time
.
now
.
change
(
usec:
0
)
}
let
(
:payload
)
do
{
...
...
@@ -18,6 +16,8 @@ describe Gitlab::Alerting::NotificationPayloadParser do
}
end
subject
{
described_class
.
call
(
payload
)
}
it
'returns Prometheus-like payload'
do
is_expected
.
to
eq
(
{
...
...
ee/spec/services/projects/alerting/notify_service_spec.rb
View file @
10379f89
...
...
@@ -11,8 +11,6 @@ describe Projects::Alerting::NotifyService do
end
describe
'#execute'
do
subject
{
service
.
execute
}
let
(
:starts_at
)
{
Time
.
now
.
change
(
usec:
0
)
}
let
(
:service
)
{
described_class
.
new
(
project
,
nil
,
payload
)
}
let
(
:payload_raw
)
do
...
...
@@ -23,6 +21,8 @@ describe Projects::Alerting::NotifyService do
end
let
(
:payload
)
{
ActionController
::
Parameters
.
new
(
payload_raw
).
permit!
}
subject
{
service
.
execute
}
context
'with license'
do
before
do
stub_licensed_features
(
incident_management:
true
)
...
...
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