diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-20 22:04:02 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-20 22:04:02 -0700 |
| commit | ba2b6e9fc1d0dd07e8a5f66384b6de2ef1dffbf2 (patch) | |
| tree | 3c9ca6ff4190bee76103ca3efe3589fbc4d0dddb /spec | |
| parent | b8220fc12cc3baae6c3e8f3c5dc5686cf1ef4df3 (diff) | |
happy hound.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/jobs/re_process_photo_job_spec.rb | 4 | ||||
| -rw-r--r-- | spec/models/password_reset_spec.rb | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/spec/jobs/re_process_photo_job_spec.rb b/spec/jobs/re_process_photo_job_spec.rb index 35198b9e..00b6f9ff 100644 --- a/spec/jobs/re_process_photo_job_spec.rb +++ b/spec/jobs/re_process_photo_job_spec.rb @@ -23,7 +23,9 @@ describe ReProcessPhotoJob, type: :job do subject.perform(photo) - expect(ProcessPhotoJob).to have_received(:perform_later).with(photo, temp_file) + expect(ProcessPhotoJob). + to have_received(:perform_later). + with(photo, temp_file) end end end diff --git a/spec/models/password_reset_spec.rb b/spec/models/password_reset_spec.rb index f9cc3c4a..6a2cd65d 100644 --- a/spec/models/password_reset_spec.rb +++ b/spec/models/password_reset_spec.rb @@ -6,7 +6,8 @@ describe PasswordReset do let(:mailer) { double(deliver_later: true) } before :each do - allow(PasswordResetMailer).to receive(:send_password_reset_instructions_to). + allow(PasswordResetMailer). + to receive(:send_password_reset_instructions_to). with(user). and_return(mailer) end |
