diff options
author | Jonne Haß <me@jhass.eu> | 2015-01-21 04:59:46 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2015-02-27 19:00:42 +0300 |
commit | 678033fa23a66e0efb42d175ebb6f6a18adf0be1 (patch) | |
tree | a8e662f5d84d6491342adfb732cccb3e54c943ca /spec/workers | |
parent | 7a741c6dce979a7cdad0abf8e3689fab0612378c (diff) |
replace deprecated stub syntax in export user spec
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/export_user_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/export_user_spec.rb b/spec/workers/export_user_spec.rb index 0011b26ea..795a9f6b8 100644 --- a/spec/workers/export_user_spec.rb +++ b/spec/workers/export_user_spec.rb @@ -12,13 +12,13 @@ describe Workers::ExportUser do end it 'sends a success message when the export is successful' do - alice.stub(:export).and_return(OpenStruct.new) + allow(alice).to receive(:export).and_return(OpenStruct.new) expect(ExportMailer).to receive(:export_complete_for).with(alice).and_call_original Workers::ExportUser.new.perform(alice.id) end it 'sends a failure message when the export fails' do - alice.stub(:export).and_return(nil) + allow(alice).to receive(:export).and_return(nil) expect(alice).to receive(:perform_export!).and_return(false) expect(ExportMailer).to receive(:export_failure_for).with(alice).and_call_original Workers::ExportUser.new.perform(alice.id) |