diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-04 15:31:25 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-04 15:31:25 +0100 |
commit | 1bbcd71cd403da843e8a4a67926a4394b31a63fd (patch) | |
tree | 6f6189273c5f188753a363058f136bfd59d0ac34 /spec | |
parent | 18f59df09e17981b9f30b631ceb509fed9b67683 (diff) |
Fix #390 - fix redirect after sign-up (to login page instead of homepage)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/auth/registrations_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/auth/registrations_controller_spec.rb b/spec/controllers/auth/registrations_controller_spec.rb index f7ebebbcb..27ad6cbde 100644 --- a/spec/controllers/auth/registrations_controller_spec.rb +++ b/spec/controllers/auth/registrations_controller_spec.rb @@ -20,8 +20,8 @@ RSpec.describe Auth::RegistrationsController, type: :controller do post :create, params: { user: { account_attributes: { username: 'test' }, email: 'test@example.com', password: '12345678', password_confirmation: '12345678' } } end - it 'redirects to home page' do - expect(response).to redirect_to root_path + it 'redirects to login page' do + expect(response).to redirect_to new_user_session_path end it 'creates user' do |