Use global config

This commit is contained in:
Matt-Yorkley
2018-10-11 09:04:37 +01:00
parent 55411af3fa
commit 4760ebb80c
2 changed files with 1 additions and 1 deletions

View File

@@ -33,7 +33,6 @@ feature "Account Settings", js: true do
end
it "allows the user to change their password" do
allow(Spree::Auth::Config).to receive(:[]).with(:signout_after_password_change).and_return(false)
initial_password = user.encrypted_password
fill_in 'user_password', with: 'NewPassword'

View File

@@ -120,6 +120,7 @@ RSpec.configure do |config|
spree_config.allow_backorders = false
end
Spree::Auth::Config[:signout_after_password_change] = false
Spree::Api::Config[:requires_authentication] = true
end