diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-11 12:59:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-11 12:59:28 +0000 |
commit | 6a8be88ad613bcb2a2fa0189cbac0b68742dc357 (patch) | |
tree | 5cca08633daffdbf0f2422b0342df60c5b6eefe3 /test/unit/user_test.rb | |
parent | e8d0c26e4393b0d88f9c62afd12268269b1bd818 (diff) | |
download | redmine-6a8be88ad613bcb2a2fa0189cbac0b68742dc357.tar.gz redmine-6a8be88ad613bcb2a2fa0189cbac0b68742dc357.zip |
Sort users by their display names so that user dropdown lists are sorted alphabetically (#2015).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2010 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r-- | test/unit/user_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 80011f4bf..b931501a1 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -85,9 +85,9 @@ class UserTest < Test::Unit::TestCase def test_name_format assert_equal 'Smith, John', @jsmith.name(:lastname_coma_firstname) Setting.user_format = :firstname_lastname - assert_equal 'John Smith', @jsmith.name + assert_equal 'John Smith', @jsmith.reload.name Setting.user_format = :username - assert_equal 'jsmith', @jsmith.name + assert_equal 'jsmith', @jsmith.reload.name end def test_lock |