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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user