aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_mailroom/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_mailroom/test_helper.rb')
-rw-r--r--lib/action_mailroom/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_mailroom/test_helper.rb b/lib/action_mailroom/test_helper.rb
index 8ffbe94e6c..3e1ff87839 100644
--- a/lib/action_mailroom/test_helper.rb
+++ b/lib/action_mailroom/test_helper.rb
@@ -14,7 +14,7 @@ module ActionMailroom
end
def create_inbound_email(io, filename: 'mail.eml', status: :processing)
- ActionMailroom::InboundEmail.create_from_raw_email! \
+ ActionMailroom::InboundEmail.create_and_extract_message_id! \
ActionDispatch::Http::UploadedFile.new(tempfile: io, filename: filename, type: 'message/rfc822'),
status: status
end