How can I check the content of a bounced email? Didn’t find an helper ActionMailbox::TestHelper and nothing in the guides Action Mailbox Basics — Ruby on Rails Guides
require "rails_helper"
RSpec.describe EventsMailbox do
it "requires a current user" do
expect(mail_processed).to have_bounced
# here I would like to check the content of the bounced email
end
def mail
Mail.new(
from: "dorian@dorianmarie.fr",
subject: "Some subject",
body: "Some body"
)
end
def mail_processed
@mail_processed ||= process(mail)
end
end