Skip to content

Commit

Permalink
Use global config
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Yorkley committed Oct 11, 2018
1 parent 55411af commit 4760ebb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion spec/features/consumer/account/settings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
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'
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def restart_phantomjs
spree_config.allow_backorders = false
end

Spree::Auth::Config[:signout_after_password_change] = false
Spree::Api::Config[:requires_authentication] = true
end

Expand Down

0 comments on commit 4760ebb

Please sign in to comment.