Sha256: 6126a12a91edafe9705ed63d51684abe4feafaaff347f101cff02fa30852fcf8

Contents?: true

Size: 196 Bytes

Versions: 50

Compression:

Stored size: 196 Bytes

Contents

module MailerHelpers
  def emails
    ActionMailer::Base.deliveries
  end

  def last_email
    emails.last
  end
end

RSpec.configure do |config|
  config.include MailerHelpers, type: :mailer
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
cmor_contact-0.0.51.pre spec/support/action_mailer.rb
cmor_contact-0.0.50.pre spec/support/action_mailer.rb
cmor_contact-0.0.49.pre spec/support/action_mailer.rb
cmor_contact-0.0.48.pre spec/support/action_mailer.rb
cmor_contact-0.0.45.pre spec/support/action_mailer.rb
cmor_contact-0.0.44.pre spec/support/action_mailer.rb
cmor_contact-0.0.43.pre spec/support/action_mailer.rb
cmor_contact-0.0.42.pre spec/support/action_mailer.rb
cmor_contact-0.0.41.pre spec/support/action_mailer.rb
cmor_contact-0.0.40.pre spec/support/action_mailer.rb
cmor_contact-0.0.39.pre spec/support/action_mailer.rb
cmor_contact-0.0.38.pre spec/support/action_mailer.rb
cmor_contact-0.0.37.pre spec/support/action_mailer.rb
cmor_contact-0.0.36.pre spec/support/action_mailer.rb
cmor_contact-0.0.35.pre spec/support/action_mailer.rb
cmor_contact-0.0.34.pre spec/support/action_mailer.rb
cmor_contact-0.0.33.pre spec/support/action_mailer.rb
cmor_contact-0.0.32.pre spec/support/action_mailer.rb
cmor_contact-0.0.31.pre spec/support/action_mailer.rb
cmor_contact-0.0.30.pre spec/support/action_mailer.rb