Module: MailerMacros

Defined in:
lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb

Instance Method Summary collapse

Instance Method Details

#last_emailObject


2
3
4
# File 'lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb', line 2

def last_email
  ActionMailer::Base.deliveries.last
end

#reset_emailObject


6
7
8
# File 'lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb', line 6

def reset_email
  ActionMailer::Base.deliveries = []
end