class Jets::Testing::MailboxForHelper::Mailbox

Attributes

email[R]

Public Class Methods

new(email) click to toggle source
# File lib/jets/testing/helpers/mailbox_for_helper.rb, line 10
def initialize(email)
  @email = email
end

Public Instance Methods

deliveries() click to toggle source
# File lib/jets/testing/helpers/mailbox_for_helper.rb, line 14
def deliveries
  ActionMailer::Base.deliveries.select do |mail|
    mail.destinations.include?(email)
  end
end