Module: MailerMacros

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

Instance Method Summary collapse

Instance Method Details

#last_emailObject



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

def last_email
  ActionMailer::Base.deliveries.last
end

#reset_emailObject



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

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