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
caccda85
Commit
caccda85
authored
Mar 06, 2019
by
rpereira2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an assert
parent
93fd186c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
ee/spec/services/projects/prometheus/alerts/notify_service_spec.rb
...ervices/projects/prometheus/alerts/notify_service_spec.rb
+1
-3
No files found.
ee/spec/services/projects/prometheus/alerts/notify_service_spec.rb
View file @
caccda85
...
...
@@ -217,7 +217,7 @@ describe Projects::Prometheus::Alerts::NotifyService do
end
context
'incident_management_setting.send_email is false'
do
let
(
:incident_mgmt_settings
)
do
before
do
create
(
:project_incident_management_setting
,
send_email:
false
,
project:
project
)
end
...
...
@@ -225,8 +225,6 @@ describe Projects::Prometheus::Alerts::NotifyService do
it
'does not send notification'
do
expect
(
project
.
feature_available?
(
:incident_management
)).
to
eq
(
true
)
expect
(
project
).
to
receive
(
:incident_management_setting
).
and_return
(
incident_mgmt_settings
)
expect
(
incident_mgmt_settings
).
to
receive
(
:send_email
)
expect
(
NotificationService
).
not_to
receive
(
:new
)
expect
(
subject
).
to
eq
(
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