diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-10 14:00:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-10 14:00:31 +0000 |
commit | be687f6c0b72b42a3c28efaf450a5281b7212d55 (patch) | |
tree | 752052453046a9df7013f743b153c5ea90690e55 /test/unit/member_test.rb | |
parent | b1bb26b1e0725411fe363c3e73d3bc9e6c5a9e9d (diff) | |
download | redmine-be687f6c0b72b42a3c28efaf450a5281b7212d55.tar.gz redmine-be687f6c0b72b42a3c28efaf450a5281b7212d55.zip |
Makes assertion compatible with ruby1.9.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8169 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/member_test.rb')
-rw-r--r-- | test/unit/member_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/member_test.rb b/test/unit/member_test.rb index 1801d9ce2..783ec90b9 100644 --- a/test/unit/member_test.rb +++ b/test/unit/member_test.rb @@ -81,7 +81,7 @@ class MemberTest < ActiveSupport::TestCase 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.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 def test_validate_member_role |