Commit 986c6b13 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Apply code style best practices

parent 174847b4
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment