class BaseTest::LateAttachmentAccessorMailer

Public Instance Methods

welcome() click to toggle source
# File actionmailer/test/base_test.rb, line 286
def welcome
  attachments["invoice.pdf"] = "This is test File content"
  mail body: "yay", from: "welcome@example.com", to: "to@example.com"

  unless attachments.map(&:filename) == ["invoice.pdf"]
    raise Minitest::Assertion, "Should allow access to attachments"
  end
end