Commit 57c8eaf7 authored by tmaruyama's avatar tmaruyama

add unit test of group blank name in French (#9795)

git-svn-id: https://svn.redmine.org/redmine/trunk@8236 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent eff75109
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment