diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-09 20:23:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-09 20:23:14 +0200 |
commit | 15d442cf9dcd0ba5958be54c285dfeb32276190e (patch) | |
tree | dc1f60cc77ba70f61614c75224c0c3f1e7fdf7ab /spec/controllers/auth | |
parent | 43f955e31f6e174428de01c6fe6f518836e64ead (diff) |
Fix /api/v1/accounts/update_credentials tests (#1357)
Diffstat (limited to 'spec/controllers/auth')
-rw-r--r-- | spec/controllers/auth/registrations_controller_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/auth/registrations_controller_spec.rb b/spec/controllers/auth/registrations_controller_spec.rb index 27ad6cbde..6b26e6693 100644 --- a/spec/controllers/auth/registrations_controller_spec.rb +++ b/spec/controllers/auth/registrations_controller_spec.rb @@ -5,6 +5,7 @@ RSpec.describe Auth::RegistrationsController, type: :controller do describe 'GET #new' do before do + Setting.open_registrations = true request.env["devise.mapping"] = Devise.mappings[:user] end @@ -16,6 +17,7 @@ RSpec.describe Auth::RegistrationsController, type: :controller do describe 'POST #create' do before do + Setting.open_registrations = true request.env["devise.mapping"] = Devise.mappings[:user] post :create, params: { user: { account_attributes: { username: 'test' }, email: 'test@example.com', password: '12345678', password_confirmation: '12345678' } } end |