Remove fragile spec

This commit is contained in:
Sam 2014-06-26 10:21:19 +10:00
parent 2bf22e8475
commit 6527862195
1 changed files with 0 additions and 17 deletions

View File

@ -103,23 +103,6 @@ describe Jobs::PollMailbox do
end 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
end end