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