diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-15 13:06:42 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-15 13:06:42 +0000 |
commit | 34087c417819dcd3edfb3dfab7e74556a3b0a020 (patch) | |
tree | edcb4e4852b23404f99c68faf371f64412a3afb7 /test/unit/group_test.rb | |
parent | 2e6b13a5e95344cb6140e1ef10eba0e87a58c0fd (diff) | |
download | redmine-34087c417819dcd3edfb3dfab7e74556a3b0a020.tar.gz redmine-34087c417819dcd3edfb3dfab7e74556a3b0a020.zip |
add unit test of group blank name in French (#9795)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8236 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/group_test.rb')
-rw-r--r-- | test/unit/group_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb index 91c7da19a..8b1ae81b3 100644 --- a/test/unit/group_test.rb +++ b/test/unit/group_test.rb @@ -42,6 +42,15 @@ class GroupTest < ActiveSupport::TestCase assert_include "Name can't be blank", g.errors.full_messages end + def test_blank_name_error_message_fr + set_language_if_valid 'fr' + str = "Nom doit \xc3\xaatre renseign\xc3\xa9(e)" + str.force_encoding('UTF-8') if str.respond_to?(:force_encoding) + g = Group.new + assert !g.save + assert_include str, g.errors.full_messages + end + def test_roles_given_to_new_user group = Group.find(11) user = User.find(9) |