summaryrefslogtreecommitdiff
path: root/spec/controllers/groups
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-06-14 15:36:36 -0300
committerFelipe Artur <felipefac@gmail.com>2016-06-16 23:34:21 -0300
commitf82ab42d0534950c1ceb458e0152f329df80ae9d (patch)
treefbb3d51a8d2c899eb5037176ff3c247b09b68793 /spec/controllers/groups
parent5c45d5933faa0cc27e1b465322067bd2861b3e47 (diff)
downloadgitlab-ce-f82ab42d0534950c1ceb458e0152f329df80ae9d.tar.gz
Re-use notifications dropdown on user profile
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r--spec/controllers/groups/notification_settings_controller_spec.rb32
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