From a29854707b30d74f43b448f288c7663cbd6066d3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 1 Oct 2012 07:08:04 +0000 Subject: add new user format "lastname" (#10937) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10543 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/user_test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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 -- cgit v1.2.3