Localize anonymous and non member roles names (#8072).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5333 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-04-05 22:37:45 +00:00
parent 5823481d6e
commit 44214ed1aa
46 changed files with 107 additions and 4 deletions
+9 -2
View File
@@ -1,5 +1,5 @@
# redMine - project management software
# Copyright (C) 2006-2008 Jean-Philippe Lang
# Redmine - project management software
# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -49,6 +49,13 @@ class RoleTest < ActiveSupport::TestCase
assert ! role.permissions.include?(perm[0])
assert_equal size - 2, role.permissions.size
end
def test_name
I18n.locale = 'fr'
assert_equal 'Manager', Role.find(1).name
assert_equal 'Anonyme', Role.anonymous.name
assert_equal 'Non membre', Role.non_member.name
end
context "#anonymous" do
should "return the anonymous role" do