diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-30 08:40:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-30 08:40:12 +0000 |
commit | 399223daba6f993775fe783828b6612747e7a89f (patch) | |
tree | 85c10bb0c00ea4c8cadbd40545bda962e522e1a0 /test/unit | |
parent | cdc8944a89af65405564dd196d237baf2e6bb59d (diff) | |
download | redmine-399223daba6f993775fe783828b6612747e7a89f.tar.gz redmine-399223daba6f993775fe783828b6612747e7a89f.zip |
New user name format: firstname + first letter of lastname (#12085).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10770 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/user_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 88b254171..eff9a61ff 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -410,6 +410,7 @@ class UserTest < ActiveSupport::TestCase end def test_name_format + assert_equal 'John S.', @jsmith.name(:firstname_lastinitial) assert_equal 'Smith, John', @jsmith.name(:lastname_coma_firstname) with_settings :user_format => :firstname_lastname do assert_equal 'John Smith', @jsmith.reload.name |