Sha256: e92637ce8b0066af7a34c3b37bc10fc0bb78b02987799e4f957433a149d4fec3

Contents?: true

Size: 791 Bytes

Versions: 37

Compression:

Stored size: 791 Bytes

Contents

require 'shoulda/matchers/action_mailer/have_sent_email_matcher'

module Shoulda
  module Matchers
    # = Matchers for your mailers
    #
    # This matcher will test that email is sent properly
    #
    #   describe User do
    #     it { should have_sent_email.with_subject(/is spam$/) }
    #     it { should have_sent_email.from('do-not-reply@example.com') }
    #     it { should have_sent_email.with_body(/is spam\./) }
    #     it { should have_sent_email.to('myself@me.com') }
    #     it { should have_sent_email.with_subject(/spam/).
    #                                 from('do-not-reply@example.com').
    #                                 with_body(/spam/).
    #                                 to('myself@me.com') }
    #   end
    module ActionMailer
    end
  end
end

Version data entries

37 entries across 28 versions & 4 rubygems

Version Path
challah-1.0.0.beta3 vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/action_mailer.rb
challah-1.0.0.beta2 vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/action_mailer.rb
challah-1.0.0.beta vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/action_mailer.rb
challah-1.0.0.beta vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.5.6 lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.5.5 lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.5.4 lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.5.2 lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.5.1 lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.5.0 lib/shoulda/matchers/action_mailer.rb
challah-0.9.1.beta.3 vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/action_mailer.rb
devise_sociable-0.1.0 vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/action_mailer.rb
challah-0.9.1.beta vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/action_mailer.rb
challah-0.9.0 vendor/bundle/gems/shoulda-matchers-1.4.2/lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.4.2 lib/shoulda/matchers/action_mailer.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/shoulda-matchers-1.4.1/lib/shoulda/matchers/action_mailer.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/shoulda-matchers-1.3.0/lib/shoulda/matchers/action_mailer.rb
challah-rolls-0.2.0 vendor/bundle/gems/shoulda-matchers-1.3.0/lib/shoulda/matchers/action_mailer.rb
challah-rolls-0.2.0 vendor/bundle/gems/shoulda-matchers-1.4.1/lib/shoulda/matchers/action_mailer.rb
challah-rolls-0.2.0 vendor/bundle/gems/shoulda-matchers-1.2.0/lib/shoulda/matchers/action_mailer.rb