From 2d6c79413d01f48df11ef76e65ba45673dcf580c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 20 Sep 2018 16:32:03 -0700 Subject: Use proper default --- lib/action_mailroom/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/action_mailroom') diff --git a/lib/action_mailroom/test_helper.rb b/lib/action_mailroom/test_helper.rb index bd9d57bd38..fbfb2797d9 100644 --- a/lib/action_mailroom/test_helper.rb +++ b/lib/action_mailroom/test_helper.rb @@ -10,7 +10,7 @@ module ActionMailroom create_inbound_email(StringIO.new(Mail.new(mail_options).to_s), status: status) end - def create_inbound_email(io, filename: 'mail.eml', status: status) + def create_inbound_email(io, filename: 'mail.eml', status: :processing) ActionMailroom::InboundEmail.create! status: status, raw_email: ActiveStorage::Blob.create_after_upload!(io: io, filename: filename, content_type: 'message/rfc822') end -- cgit v1.2.3