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
986c6b13
Commit
986c6b13
authored
Sep 13, 2019
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply code style best practices
parent
174847b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ee/spec/controllers/projects/alerting/notifications_controller_spec.rb
...ollers/projects/alerting/notifications_controller_spec.rb
+2
-1
No files found.
ee/spec/controllers/projects/alerting/notifications_controller_spec.rb
View file @
986c6b13
...
@@ -11,7 +11,7 @@ describe Projects::Alerting::NotificationsController do
...
@@ -11,7 +11,7 @@ describe Projects::Alerting::NotificationsController do
let
(
:notify_service
)
{
instance_double
(
Projects
::
Alerting
::
NotifyService
,
execute:
service_response
)
}
let
(
:notify_service
)
{
instance_double
(
Projects
::
Alerting
::
NotifyService
,
execute:
service_response
)
}
before
do
before
do
allow
(
Projects
::
Alerting
::
NotifyService
).
to
receive
(
:new
).
and_return
notify_service
allow
(
Projects
::
Alerting
::
NotifyService
).
to
receive
(
:new
).
and_return
(
notify_service
)
end
end
def
make_request
(
opts
=
{})
def
make_request
(
opts
=
{})
...
@@ -30,6 +30,7 @@ describe Projects::Alerting::NotificationsController do
...
@@ -30,6 +30,7 @@ describe Projects::Alerting::NotificationsController do
hosts:
'https://gitlab.com'
hosts:
'https://gitlab.com'
}
}
end
end
let
(
:permitted_params
)
{
ActionController
::
Parameters
.
new
(
payload
).
permit!
}
let
(
:permitted_params
)
{
ActionController
::
Parameters
.
new
(
payload
).
permit!
}
it
'responds with ok'
do
it
'responds with ok'
do
...
...
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