Browse Source

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
tags/1.4.0
Toshi MARUYAMA 12 years ago
parent
commit
34087c4178
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      test/unit/group_test.rb

+ 9
- 0
test/unit/group_test.rb 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)

Loading…
Cancel
Save