module RSpec::Rails::MailboxExampleGroup
def self.create_inbound_email(arg)
- Private: -
def self.create_inbound_email(arg) case arg when Hash create_inbound_email_from_mail(**arg) else create_inbound_email_from_source(arg.to_s) end end
def self.create_inbound_email(_arg)
def self.create_inbound_email(_arg) raise "Could not load ActionMailer::TestHelper" end
def have_been_delivered
- Api: - public
def have_been_delivered satisfy('have been delivered', &:delivered?) end
def have_bounced
- Api: - public
def have_bounced satisfy('have bounced', &:bounced?) end
def have_failed
- Api: - public
def have_failed satisfy('have failed', &:failed?) end
def mailbox_class
- Private: -
def mailbox_class described_class end
def process(message)
-
(ActionMailbox::InboundMessage)
-
Parameters:
-
message
(Hash, Mail::Message
) -- a mail message or hash of
def process(message) MailboxExampleGroup.create_inbound_email(message).tap do |mail| self.class.mailbox_class.receive(mail) end end