diff options
author | George Claghorn <george@basecamp.com> | 2018-10-02 10:06:36 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-02 10:06:36 -0400 |
commit | 16a53e3d5c52a882ff85ec2a678bb49e21a4b3eb (patch) | |
tree | 2adcd823c3b27de534fdc019c2c61b9deb977f93 /lib/action_mailbox | |
parent | 622901636b417731e4239359feef7cf6943b8b3c (diff) | |
download | rails-16a53e3d5c52a882ff85ec2a678bb49e21a4b3eb.tar.gz rails-16a53e3d5c52a882ff85ec2a678bb49e21a4b3eb.tar.bz2 rails-16a53e3d5c52a882ff85ec2a678bb49e21a4b3eb.zip |
Permit receiving an email fixture
Diffstat (limited to 'lib/action_mailbox')
-rw-r--r-- | lib/action_mailbox/test_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/action_mailbox/test_helper.rb b/lib/action_mailbox/test_helper.rb index 4694f61b8a..b1d7af33f9 100644 --- a/lib/action_mailbox/test_helper.rb +++ b/lib/action_mailbox/test_helper.rb @@ -19,6 +19,10 @@ module ActionMailbox status: status end + def receive_inbound_email_from_fixture(*args) + create_inbound_email_from_fixture(*args).tap(&:route) + end + def receive_inbound_email_from_mail(**kwargs) create_inbound_email_from_mail(**kwargs).tap(&:route) end |