aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorBrian Lopez <seniorlopez@gmail.com>2010-08-20 19:46:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-20 20:00:03 -0700
commit82e389ed30fd979d4a627b1edbda52c6dde34ae6 (patch)
treed72d392c5c23dbf601b7b8230fcaf74c3b8e5e7b /activerecord/test
parentc211d904ba358d3d1ae85d56fa3a805ea505c23a (diff)
downloadrails-82e389ed30fd979d4a627b1edbda52c6dde34ae6.tar.gz
rails-82e389ed30fd979d4a627b1edbda52c6dde34ae6.tar.bz2
rails-82e389ed30fd979d4a627b1edbda52c6dde34ae6.zip
reload bob after his journy to a new timezone
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/migration_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 186bb55c01..96b97fdd8a 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -566,6 +566,7 @@ if ActiveRecord::Base.connection.supports_migrations?
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