summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-12 12:57:39 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-12 12:57:39 -0300
commit61a62e00e3b08e6ed962b029564e3a2446e169fd (patch)
tree015f89a9106322f272fa92c2f31875e937308b70
parentaabb466e5b35477b39cc57642083df361cd5d112 (diff)
downloadgitlab-ce-61a62e00e3b08e6ed962b029564e3a2446e169fd.tar.gz
Fix specs for Projects::NotificationSettingsController
-rw-r--r--spec/controllers/projects/notification_settings_controller_spec.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/controllers/projects/notification_settings_controller_spec.rb b/spec/controllers/projects/notification_settings_controller_spec.rb
index 385877a26df..4908b545648 100644
--- a/spec/controllers/projects/notification_settings_controller_spec.rb
+++ b/spec/controllers/projects/notification_settings_controller_spec.rb
@@ -8,34 +8,6 @@ describe Projects::NotificationSettingsController do
project.team << [user, :developer]
end
- describe '#create' do
- context 'when not authorized' do
- it 'redirects to sign in page' do
- post :create,
- namespace_id: project.namespace.to_param,
- project_id: project.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
- post :create,
- namespace_id: project.namespace.to_param,
- project_id: project.to_param,
- notification_setting: { level: :participating }
-
- expect(response.status).to eq 200
- end
- end
- end
-
describe '#update' do
context 'when not authorized' do
it 'redirects to sign in page' do