diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-05 22:37:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-05 22:37:45 +0000 |
commit | 44214ed1aad333652a092a1f7d7ed71faf0b17b6 (patch) | |
tree | 4435d447327dec45cd1ecb3a3a7df8f2c74332d6 /test/unit/role_test.rb | |
parent | 5823481d6ef074904c495bb25ee76c86b1972d4e (diff) | |
download | redmine-44214ed1aad333652a092a1f7d7ed71faf0b17b6.tar.gz redmine-44214ed1aad333652a092a1f7d7ed71faf0b17b6.zip |
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
Diffstat (limited to 'test/unit/role_test.rb')
-rw-r--r-- | test/unit/role_test.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb index 41ad7e883..225219ee9 100644 --- a/test/unit/role_test.rb +++ b/test/unit/role_test.rb @@ -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 |