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