aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_mailbox
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-10-02 10:06:36 -0400
committerGeorge Claghorn <george@basecamp.com>2018-10-02 10:06:36 -0400
commit16a53e3d5c52a882ff85ec2a678bb49e21a4b3eb (patch)
tree2adcd823c3b27de534fdc019c2c61b9deb977f93 /lib/action_mailbox
parent622901636b417731e4239359feef7cf6943b8b3c (diff)
downloadrails-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.rb4
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