diff options
author | George Claghorn <george.claghorn@gmail.com> | 2019-04-09 07:57:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 07:57:30 -0400 |
commit | 17418ba7d19aee9893d42024792268db2e117887 (patch) | |
tree | e863ba6196ecc9f291a6dd47e15e5f78b29f702a | |
parent | ac786cd1f2c39ea4c9eefeb23ceaab8fe3b242ec (diff) | |
parent | 4a9f2a746e855cf9f7169c8b7ed7563422bb08d6 (diff) | |
download | rails-17418ba7d19aee9893d42024792268db2e117887.tar.gz rails-17418ba7d19aee9893d42024792268db2e117887.tar.bz2 rails-17418ba7d19aee9893d42024792268db2e117887.zip |
Merge pull request #35904 from xrav3nz/fix/action-mailbox/test-helper-args
FIX: ActionMailbox test helper argument list
-rw-r--r-- | actionmailbox/lib/action_mailbox/test_helper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/actionmailbox/lib/action_mailbox/test_helper.rb b/actionmailbox/lib/action_mailbox/test_helper.rb index 0ec9152844..d248fa8734 100644 --- a/actionmailbox/lib/action_mailbox/test_helper.rb +++ b/actionmailbox/lib/action_mailbox/test_helper.rb @@ -29,16 +29,16 @@ module ActionMailbox create_inbound_email_from_fixture(*args).tap(&:route) end - # Create an +InboundEmail+ from fixture using the same arguments as +create_inbound_email_from_mail+ - # and immediately route it to processing. + # Create an +InboundEmail+ using the same arguments as +create_inbound_email_from_mail+ and immediately route it to + # processing. def receive_inbound_email_from_mail(**kwargs) create_inbound_email_from_mail(**kwargs).tap(&:route) end - # Create an +InboundEmail+ from fixture using the same arguments as +create_inbound_email_from_source+ - # and immediately route it to processing. - def receive_inbound_email_from_source(**kwargs) - create_inbound_email_from_source(**kwargs).tap(&:route) + # Create an +InboundEmail+ using the same arguments as +create_inbound_email_from_source+ and immediately route it + # to processing. + def receive_inbound_email_from_source(*args) + create_inbound_email_from_source(*args).tap(&:route) end end end |