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
503c08c9
Commit
503c08c9
authored
Oct 22, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak expectation for service hooks
parent
c0dc8d31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/support/shared_examples/services/alert_management_shared_examples.rb
...red_examples/services/alert_management_shared_examples.rb
+3
-3
No files found.
spec/support/shared_examples/services/alert_management_shared_examples.rb
View file @
503c08c9
...
@@ -8,11 +8,11 @@ RSpec.shared_examples 'creates an alert management alert' do
...
@@ -8,11 +8,11 @@ RSpec.shared_examples 'creates an alert management alert' do
end
end
it
'executes the alert service hooks'
do
it
'executes the alert service hooks'
do
slack_service
=
create
(
:service
,
type:
'SlackService'
,
project:
project
,
alert_events:
true
,
active:
true
)
expect_next_instance_of
(
AlertManagement
::
Alert
)
do
|
alert
|
expect
(
alert
).
to
receive
(
:execute_services
)
end
subject
subject
expect
(
ProjectServiceWorker
).
to
have_received
(
:perform_async
).
with
(
slack_service
.
id
,
an_instance_of
(
Hash
))
end
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