diff options
author | George Claghorn <george@basecamp.com> | 2018-10-17 12:42:54 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-17 12:42:54 -0400 |
commit | 2b09cbbe4407ce84b23450b27b2c3b6f35e8ef1b (patch) | |
tree | 3ea01a4223d35a4930a36944d65b506f218757d1 /lib/action_mailbox | |
parent | 7903e3ada80d7938b1b78b06d0f678e95367a56b (diff) | |
download | rails-2b09cbbe4407ce84b23450b27b2c3b6f35e8ef1b.tar.gz rails-2b09cbbe4407ce84b23450b27b2c3b6f35e8ef1b.tar.bz2 rails-2b09cbbe4407ce84b23450b27b2c3b6f35e8ef1b.zip |
Shush various interpreter warnings
Diffstat (limited to 'lib/action_mailbox')
-rw-r--r-- | lib/action_mailbox/base.rb | 2 | ||||
-rw-r--r-- | lib/action_mailbox/test_helper.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_mailbox/base.rb b/lib/action_mailbox/base.rb index 103bbc544c..01ddc9c59b 100644 --- a/lib/action_mailbox/base.rb +++ b/lib/action_mailbox/base.rb @@ -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 diff --git a/lib/action_mailbox/test_helper.rb b/lib/action_mailbox/test_helper.rb index b1d7af33f9..a74ea8ef57 100644 --- a/lib/action_mailbox/test_helper.rb +++ b/lib/action_mailbox/test_helper.rb @@ -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 |