Sha256: d2312da71950e8f76afc637cfb9cf0ee3f5c78c870820cbcdd7f43c671be9908

Contents?: true

Size: 783 Bytes

Versions: 16

Compression:

Stored size: 783 Bytes

Contents

require 'shoulda/matchers/action_mailer/have_sent_email'

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

16 entries across 13 versions & 4 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
challah-0.6.2 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
challah-0.6.1 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
challah-0.6.0 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
challah-0.5.4 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
challah-0.5.3 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
challah-0.5.2 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
challah-0.5.1 vendor/bundle/gems/shoulda-matchers-1.0.0/lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.0.0 lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.0.0.beta3 lib/shoulda/matchers/action_mailer.rb
yetanothernguyen-shoulda-matchers-1.0.0.beta3 lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.0.0.beta2 lib/shoulda/matchers/action_mailer.rb
shoulda-matchers-1.0.0.beta1 lib/shoulda/matchers/action_mailer.rb