summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r--test/unit/user_test.rb4
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