From 4760ebb80c908b70a9fd5a0d184a57a49d2b36b3 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 11 Oct 2018 09:04:37 +0100 Subject: [PATCH] Use global config --- spec/features/consumer/account/settings_spec.rb | 1 - spec/spec_helper.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/consumer/account/settings_spec.rb b/spec/features/consumer/account/settings_spec.rb index e9001f177c..32dc8d3534 100644 --- a/spec/features/consumer/account/settings_spec.rb +++ b/spec/features/consumer/account/settings_spec.rb @@ -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' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 328c2aaac3..6b73d23fb0 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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