mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Shush various interpreter warnings
This commit is contained in:
parent
7903e3ada8
commit
2b09cbbe44
4 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ module ActionMailbox::InboundEmail::MessageId
|
|||
private
|
||||
def extract_message_id(raw_email)
|
||||
mail_from_source(raw_email.read).message_id
|
||||
rescue => e
|
||||
rescue
|
||||
# FIXME: Add logging with "Couldn't extract Message ID, so will generating a new random ID instead"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -49,7 +49,7 @@ class ActionMailbox::Base
|
|||
inbound_email.processing!
|
||||
yield
|
||||
inbound_email.delivered! unless inbound_email.bounced?
|
||||
rescue => exception
|
||||
rescue
|
||||
inbound_email.failed!
|
||||
raise
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@ module ActionMailbox
|
|||
end
|
||||
|
||||
def create_inbound_email_from_mail(status: :processing, **mail_options)
|
||||
raw_email = Tempfile.new.tap { |raw_email| raw_email.write Mail.new(mail_options).to_s }
|
||||
raw_email = Tempfile.new.tap { |io| io.write Mail.new(mail_options).to_s }
|
||||
create_inbound_email(raw_email, status: status)
|
||||
end
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ class ActionMailbox::Base::RoutingTest < ActiveSupport::TestCase
|
|||
|
||||
test "delayed routing" do
|
||||
perform_enqueued_jobs only: ActionMailbox::RoutingJob do
|
||||
another_inbound_email = create_inbound_email_from_fixture("welcome.eml", status: :pending)
|
||||
create_inbound_email_from_fixture "welcome.eml", status: :pending
|
||||
assert_equal "Discussion: Let's debate these attachments", $processed
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue