From 6527862195757424c1bf7948d1117e65d1eade90 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 26 Jun 2014 10:21:19 +1000 Subject: [PATCH] Remove fragile spec --- spec/jobs/poll_mailbox_spec.rb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spec/jobs/poll_mailbox_spec.rb b/spec/jobs/poll_mailbox_spec.rb index a189f155b2e..f0d26bbd257 100644 --- a/spec/jobs/poll_mailbox_spec.rb +++ b/spec/jobs/poll_mailbox_spec.rb @@ -103,23 +103,6 @@ describe Jobs::PollMailbox do end - it "informs admins on any other error" do - error = TypeError.new - error.set_backtrace(["Hi", "Bye"]) - receiver.expects(:process).raises(error) - email.expects(:delete) - - Mail::Message.expects(:new).with(email_string).returns(email) - email.expects(:from).twice - email.expects(:body).twice - - data = { limit_once_per: false, message_params: { from: email.from, source: email.body, error: "#{error.message}\n\n#{error.backtrace.join("\n")}" }} - - GroupMessage.expects(:create).with("admins", :email_error_notification, data) - - poller.handle_mail(email) - end - end end