cours0708/P5B/ruby/mon_projet/test/unit/utilisateur_mailer_test.rb

32 lines
742 B
Ruby
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
require File.dirname(__FILE__) + '/../test_helper'
require 'utilisateur_mailer'
class UtilisateurMailerTest < Test::Unit::TestCase
FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures'
CHARSET = "utf-8"
include ActionMailer::Quoting
def setup
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.deliveries = []
@expected = TMail::Mail.new
@expected.set_content_type "text", "plain", { "charset" => CHARSET }
end
def test_dummy_test
#do nothing
end
private
def read_fixture(action)
IO.readlines("#{FIXTURES_PATH}/utilisateur_mailer/#{action}")
end
def encode(subject)
quoted_printable(subject, CHARSET)
end
end