Fixes some test failures due to Array#to_s behaviour in ruby1.9.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2913 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-10-10 15:14:08 +00:00
parent 22d3d5a3b0
commit 9cd662f8dc
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class MailerTest < ActiveSupport::TestCase
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
assert_equal Mailer.message_id_for(journal), mail.message_id
assert_equal Mailer.message_id_for(journal.issue), mail.references.to_s
assert_equal Mailer.message_id_for(journal.issue), mail.references.first.to_s
end
def test_message_posted_message_id
@ -153,7 +153,7 @@ class MailerTest < ActiveSupport::TestCase
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
assert_equal Mailer.message_id_for(message), mail.message_id
assert_equal Mailer.message_id_for(message.parent), mail.references.to_s
assert_equal Mailer.message_id_for(message.parent), mail.references.first.to_s
end
# test mailer methods for each language