From 9cd662f8dcb7d8e4bf0775d6eb095f4b2fedd373 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 10 Oct 2009 15:14:08 +0000 Subject: [PATCH] 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 --- test/unit/mailer_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 5024a845b..d58d55900 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -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