summaryrefslogtreecommitdiff
path: root/spec/controllers/notification_settings_controller_spec.rb
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-06-22 10:50:19 -0300
committerFelipe Artur <felipefac@gmail.com>2016-06-29 11:04:18 -0300
commit36d48120f66d52dcc8697893ca1ab85322ba7c8b (patch)
tree8c66cdb03c4429bf326711d8bd6956fbf45252b7 /spec/controllers/notification_settings_controller_spec.rb
parent2674b548601b279ada46d4b218a9def6fd5b9f6d (diff)
parent92e183542fe0e13930220ba3bbf67b9197cfc026 (diff)
downloadgitlab-ce-36d48120f66d52dcc8697893ca1ab85322ba7c8b.tar.gz
merge master into issue_3359_3
Diffstat (limited to 'spec/controllers/notification_settings_controller_spec.rb')
-rw-r--r--spec/controllers/notification_settings_controller_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/controllers/notification_settings_controller_spec.rb b/spec/controllers/notification_settings_controller_spec.rb
index ad48b9e9087..07734a2dc19 100644
--- a/spec/controllers/notification_settings_controller_spec.rb
+++ b/spec/controllers/notification_settings_controller_spec.rb
@@ -13,7 +13,7 @@ describe NotificationSettingsController do
context 'when not authorized' do
it 'redirects to sign in page' do
post :create,
- project: { id: project.id },
+ project_id: project.id,
notification_setting: { level: :participating }
expect(response).to redirect_to(new_user_session_path)
@@ -40,7 +40,7 @@ describe NotificationSettingsController do
it 'creates notification setting' do
post :create,
- project: { id: project.id },
+ project_id: project.id,
notification_setting: { level: :participating }
expect(response.status).to eq 200
@@ -53,7 +53,7 @@ describe NotificationSettingsController do
context 'with custom settings' do
it 'creates notification setting' do
post :create,
- project: { id: project.id },
+ project_id: project.id,
notification_setting: { level: :custom }.merge(custom_events)
expect(response.status).to eq 200
@@ -68,7 +68,7 @@ describe NotificationSettingsController do
it 'creates notification setting' do
post :create,
- namespace: { id: group.id },
+ namespace_id: group.id,
notification_setting: { level: :watch }
expect(response.status).to eq 200
@@ -81,7 +81,7 @@ describe NotificationSettingsController do
context 'with custom settings' do
it 'creates notification setting' do
post :create,
- namespace: { id: group.id },
+ namespace_id: group.id,
notification_setting: { level: :custom }.merge(custom_events)
expect(response.status).to eq 200
@@ -98,7 +98,7 @@ describe NotificationSettingsController do
it 'returns 404' do
post :create,
- project: { id: private_project.id },
+ project_id: private_project.id,
notification_setting: { level: :participating }
expect(response.status).to eq(404)