Sha256: 0cee72884763400b0bfcb5fef7a105281c95993f1be6cbb8e8cdf64e2a95b96c

Contents?: true

Size: 803 Bytes

Versions: 91

Compression:

Stored size: 803 Bytes

Contents

require 'shoulda/action_mailer/matchers/have_sent_email'

module Shoulda # :nodoc:
  module ActionMailer # :nodoc:
    # = 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 Matchers
    end
  end
end

Version data entries

91 entries across 61 versions & 10 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
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-2.11.3/lib/shoulda/action_mailer/matchers.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-2.11.3/lib/shoulda/action_mailer/matchers.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
challah-0.6.2 vendor/bundle/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
challah-0.6.1 vendor/bundle/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb
challah-0.6.0 vendor/bundle/gems/shoulda-2.11.3/lib/shoulda/action_mailer/matchers.rb