Fix spec for InternalUser#forgot_password

This commit is contained in:
Sebastian Serth
2021-01-27 18:40:53 +01:00
parent 470f4a3c1a
commit bc05a363f2

View File

@ -195,7 +195,7 @@ describe InternalUsersController do
before(:each) { perform_request.call } before(:each) { perform_request.call }
it 'delivers instructions to reset the password' do it 'delivers instructions to reset the password' do
expect(InternalUser).to receive(:find_by).and_return(user) expect(InternalUser).to receive(:where).and_return([user])
expect(user).to receive(:deliver_reset_password_instructions!) expect(user).to receive(:deliver_reset_password_instructions!)
perform_request.call perform_request.call
end end