Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2014-12-29 00:34:43 +0300
committerJonne Haß <me@jhass.eu>2015-02-27 18:58:39 +0300
commit3a903863030933988dfca23bed7c19166f4f5241 (patch)
tree11804f0540ec85b54bb4dd7211ad90653d0f6456 /spec/workers
parentf62ba0f73cd465d36d74e1a2fd8ff76027b7d685 (diff)
deliver needs to be called on the return value of the mailer call
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/export_user_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/export_user_spec.rb b/spec/workers/export_user_spec.rb
index f6ecfba55..0011b26ea 100644
--- a/spec/workers/export_user_spec.rb
+++ b/spec/workers/export_user_spec.rb
@@ -13,14 +13,14 @@ describe Workers::ExportUser do
it 'sends a success message when the export is successful' do
alice.stub(:export).and_return(OpenStruct.new)
- expect(ExportMailer).to receive(:export_complete_for).with(alice)
+ 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)
expect(alice).to receive(:perform_export!).and_return(false)
- expect(ExportMailer).to receive(:export_failure_for).with(alice)
+ expect(ExportMailer).to receive(:export_failure_for).with(alice).and_call_original
Workers::ExportUser.new.perform(alice.id)
end
end