mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-05 07:19:14 +00:00
Use global config
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user