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.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index 1f4d89657..20056406b 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -417,6 +417,9 @@ class UserTest < ActiveSupport::TestCase
with_settings :user_format => :username do
assert_equal 'jsmith', @jsmith.reload.name
end
+ with_settings :user_format => :lastname do
+ assert_equal 'Smith', @jsmith.reload.name
+ end
end
def test_today_should_return_the_day_according_to_user_time_zone