diff options
| author | Felipe Artur <felipefac@gmail.com> | 2016-06-17 00:17:20 -0300 |
|---|---|---|
| committer | Felipe Artur <felipefac@gmail.com> | 2016-06-17 00:17:20 -0300 |
| commit | 33c61bd461d21dbb79db18e0c2424f53120e83c0 (patch) | |
| tree | 2b0d60fe8b8a9c132c8c25f63131d333821f876e /spec/controllers/groups | |
| parent | 24f5f071dcce529a3fbbc887ebce7bfc56353361 (diff) | |
| parent | f82ab42d0534950c1ceb458e0152f329df80ae9d (diff) | |
| download | gitlab-ce-33c61bd461d21dbb79db18e0c2424f53120e83c0.tar.gz | |
Re-use notifications dropdown/modal for user profile
Diffstat (limited to 'spec/controllers/groups')
| -rw-r--r-- | spec/controllers/groups/notification_settings_controller_spec.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/controllers/groups/notification_settings_controller_spec.rb b/spec/controllers/groups/notification_settings_controller_spec.rb deleted file mode 100644 index 0786e45515a..00000000000 --- a/spec/controllers/groups/notification_settings_controller_spec.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'spec_helper' - -describe Groups::NotificationSettingsController do - let(:group) { create(:group) } - let(:user) { create(:user) } - - describe '#update' do - context 'when not authorized' do - it 'redirects to sign in page' do - put :update, - group_id: group.to_param, - notification_setting: { level: :participating } - - expect(response).to redirect_to(new_user_session_path) - end - end - - context 'when authorized' do - before do - sign_in(user) - end - - it 'returns success' do - put :update, - group_id: group.to_param, - notification_setting: { level: :participating } - - expect(response.status).to eq 200 - end - end - end -end |
