diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-06-22 16:50:19 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-06-29 17:04:18 +0300 |
commit | 36d48120f66d52dcc8697893ca1ab85322ba7c8b (patch) | |
tree | 8c66cdb03c4429bf326711d8bd6956fbf45252b7 /spec/controllers | |
parent | 2674b548601b279ada46d4b218a9def6fd5b9f6d (diff) | |
parent | 92e183542fe0e13930220ba3bbf67b9197cfc026 (diff) |
merge master into issue_3359_3
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/notification_settings_controller_spec.rb | 12 |
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) |