Makes assertion compatible with ruby1.9.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8169 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-10 14:00:31 +00:00
parent b1bb26b1e0
commit be687f6c0b
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class MemberTest < ActiveSupport::TestCase
assert_equal I18n.translate('activerecord.errors.messages.empty'), member.errors[:role].to_s assert_equal I18n.translate('activerecord.errors.messages.empty'), member.errors[:role].to_s
str = "R\xc3\xb4le doit \xc3\xaatre renseign\xc3\xa9(e)" str = "R\xc3\xb4le doit \xc3\xaatre renseign\xc3\xa9(e)"
str.force_encoding('UTF-8') if str.respond_to?(:force_encoding) str.force_encoding('UTF-8') if str.respond_to?(:force_encoding)
assert_equal str, member.errors.full_messages.to_s assert_equal str, [member.errors.full_messages].flatten.join
end end
def test_validate_member_role def test_validate_member_role