##// END OF EJS Templates
add unit test of group blank name in French (#9795)...
Toshi MARUYAMA -
r8116:34087c417819
parent child
Show More
@@ -42,6 +42,15 class GroupTest < ActiveSupport::TestCase
42 42 assert_include "Name can't be blank", g.errors.full_messages
43 43 end
44 44
45 def test_blank_name_error_message_fr
46 set_language_if_valid 'fr'
47 str = "Nom doit \xc3\xaatre renseign\xc3\xa9(e)"
48 str.force_encoding('UTF-8') if str.respond_to?(:force_encoding)
49 g = Group.new
50 assert !g.save
51 assert_include str, g.errors.full_messages
52 end
53
45 54 def test_roles_given_to_new_user
46 55 group = Group.find(11)
47 56 user = User.find(9)
General Comments 0
You need to be logged in to leave comments. Login now