Browse files

Merge pull request #4742 from petervandenabeele/master

Set the timezone correctly for a test in activerecord/../base_test.rb
  • Loading branch information...
2 parents 5cad7a0 + 7be0b7e commit d9c48626f9b1349e7acb496ba32be9bfaf4625da @tenderlove tenderlove committed Jan 31, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 activerecord/test/cases/base_test.rb
View
3 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 d9c4862

Please sign in to comment.