summaryrefslogtreecommitdiffstats
path: root/test/unit/user_preference_test.rb
diff options
context:
space:
mode:
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