1 require File.dirname(__FILE__) + '/../test_helper'
4 class VoterNotifyTest < Test::Unit::TestCase
5 FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures'
8 include ActionMailer::Quoting
11 ActionMailer::Base.delivery_method = :test
12 ActionMailer::Base.perform_deliveries = true
13 ActionMailer::Base.deliveries = []
15 @expected = TMail::Mail.new
16 @expected.set_content_type "text", "plain", { "charset" => CHARSET }
20 def read_fixture(action)
21 IO.readlines("#{FIXTURES_PATH}/voter_notify/#{action}")
25 quoted_printable(subject, CHARSET)