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
This commit is contained in:
Toshi MARUYAMA 2011-12-15 13:06:42 +00:00
parent 2e6b13a5e9
commit 34087c4178
1 changed files with 9 additions and 0 deletions

View File

@ -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)