module ActionMailer::TestCase::Behavior::InstanceMethods
def charset
def charset "UTF-8" end
def encode(subject)
def encode(subject) Mail::Encodings.q_value_encode(subject, charset) end
def initialize_test_deliveries
def initialize_test_deliveries ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.deliveries.clear end
def read_fixture(action)
def read_fixture(action) IO.readlines(File.join(Rails.root, 'test', 'fixtures', self.class.mailer_class.name.underscore, action)) end
def set_expected_mail
def set_expected_mail @expected = Mail.new @expected.content_type ["text", "plain", { "charset" => charset }] @expected.mime_version = '1.0' end