summaryrefslogtreecommitdiffstats
path: root/test/unit/user_preference_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-15 12:52:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-15 12:52:41 +0000
commit6d21b3c4aea80589c3c6bbda2957edf098e10ec9 (patch)
tree971228493415f93621409f1a7c01609da3343f30 /test/unit/user_preference_test.rb
parentdf18ece50437b105091f3e26cfa6748fd45fe12f (diff)
downloadredmine-6d21b3c4aea80589c3c6bbda2957edf098e10ec9.tar.gz
redmine-6d21b3c4aea80589c3c6bbda2957edf098e10ec9.zip
Add default timezone for new users (#16484).
git-svn-id: http://svn.redmine.org/redmine/trunk@16200 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/user_preference_test.rb')
-rw-r--r--test/unit/user_preference_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb
index 7303d178f..bbf5f70ba 100644
--- a/test/unit/user_preference_test.rb
+++ b/test/unit/user_preference_test.rb
@@ -32,6 +32,13 @@ class UserPreferenceTest < ActiveSupport::TestCase
end
end
+ def test_time_zone_should_default_to_setting
+ with_settings :default_users_time_zone => 'Paris' do
+ preference = UserPreference.new
+ assert_equal 'Paris', preference.time_zone
+ end
+ end
+
def test_no_self_notified_should_default_to_true
preference = UserPreference.new
assert_equal true, preference.no_self_notified