module RSpec::Rails::MailboxExampleGroup

def self.create_inbound_email(arg)

Other tags:
    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

Other tags:
    Api: - public
def have_been_delivered
  satisfy('have been delivered', &:delivered?)
end

def have_bounced

Other tags:
    Api: - public
def have_bounced
  satisfy('have bounced', &:bounced?)
end

def have_failed

Other tags:
    Api: - public
def have_failed
  satisfy('have failed', &:failed?)
end

def mailbox_class

Other tags:
    Private: -
def mailbox_class
  described_class
end

def process(message)

Returns:
  • (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