module ActionMailer::TestCase::Behavior - actionmailer-3.2.22 Documentation

# module ActionMailer::TestCase::Behavior

### Protected Instance Methods

initialize_test_deliveries() click to toggle source

    # File lib/action_mailer/test_case.rb, line 53
    def initialize_test_deliveries
      ActionMailer::Base.delivery_method = :test
      ActionMailer::Base.perform_deliveries = true
      ActionMailer::Base.deliveries.clear
    end

set_expected_mail() click to toggle source

    # File lib/action_mailer/test_case.rb, line 59
    def set_expected_mail
      @expected = Mail.new
      @expected.content_type ["text", "plain", { "charset" => charset }]
      @expected.mime_version = '1.0'
    end