Sha256: 110d21b18b017b65aee255c187f8874e112268afbf462211f59919cd7455a358

Contents?: true

Size: 150 Bytes

Versions: 6

Compression:

Stored size: 150 Bytes

Contents

module MailerMacros
  def last_email
    ActionMailer::Base.deliveries.last
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pages_core-3.6.2 lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb
pages_core-3.6.1 lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb
pages_core-3.6.0 lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb
pages_core-3.4.3 lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb
pages_core-3.5.1 lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb
pages_core-3.4.2 lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb