We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d21941c + 7aaf780 commit 0032349Copy full SHA for 0032349
1 file changed
spec/models/user_spec.rb
@@ -12,7 +12,7 @@
12
let(:user) { create(:user) }
13
14
it "generates the reset password token" do
15
- expect(Spree::UserMailer).to receive(:reset_password_instructions).with(user, anything, {}).and_return(double(deliver: true))
+ expect(Spree::UserMailer).to receive(:reset_password_instructions).with(user, anything, {}).and_return(double(deliver_now: true))
16
expect { user.send_reset_password_instructions }.to change(user, :reset_password_token).to be_present
17
end
18
0 commit comments