edge badge
Namespace
Methods
I
R
S
Included Modules
Instance Protected methods
initialize_test_deliveries()
# File actionmailer/lib/action_mailer/test_case.rb, line 57
def initialize_test_deliveries
  @old_delivery_method = ActionMailer::Base.delivery_method
  @old_perform_deliveries = ActionMailer::Base.perform_deliveries
  ActionMailer::Base.delivery_method = :test
  ActionMailer::Base.perform_deliveries = true
end
restore_test_deliveries()
# File actionmailer/lib/action_mailer/test_case.rb, line 64
def restore_test_deliveries
  ActionMailer::Base.delivery_method = @old_delivery_method
  ActionMailer::Base.perform_deliveries = @old_perform_deliveries
  ActionMailer::Base.deliveries.clear
end
set_expected_mail()
# File actionmailer/lib/action_mailer/test_case.rb, line 70
def set_expected_mail
  @expected = Mail.new
  @expected.content_type ["text", "plain", { "charset" => charset }]
  @expected.mime_version = '1.0'
end