Permalink
Browse files

reload bob after his journy to a new timezone

  • Loading branch information...
1 parent c211d90 commit 82e389ed30fd979d4a627b1edbda52c6dde34ae6 @brianmario brianmario committed with tenderlove Aug 21, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/test/cases/migration_test.rb
@@ -566,6 +566,7 @@ def test_native_types
if bob.moment_of_truth.is_a?(DateTime)
with_env_tz 'US/Eastern' do
+ bob.reload
assert_equal DateTime.local_offset, bob.moment_of_truth.offset
assert_not_equal 0, bob.moment_of_truth.offset
assert_not_equal "Z", bob.moment_of_truth.zone

0 comments on commit 82e389e

Please sign in to comment.