Permalink
Browse files

Set default_timezone explicitly for a test in activerecord/../base_te…

…st.rb
  • Loading branch information...
1 parent d5ddc6c commit 7be0b7e59cacbb6927477c77bb1420a2ff7dd90d @petervandenabeele petervandenabeele committed Jan 29, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 activerecord/test/cases/base_test.rb
@@ -1104,7 +1104,10 @@ def test_bignum
# TODO: extend defaults tests to other databases!
if current_adapter?(:PostgreSQLAdapter)
def test_default
+ tz = Default.default_timezone
+ Default.default_timezone = :local
default = Default.new
+ Default.default_timezone = tz
# fixed dates / times
assert_equal Date.new(2004, 1, 1), default.fixed_date

0 comments on commit 7be0b7e

Please sign in to comment.