diff options
author | Brian Lopez <seniorlopez@gmail.com> | 2010-08-20 19:46:30 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-20 20:00:03 -0700 |
commit | 82e389ed30fd979d4a627b1edbda52c6dde34ae6 (patch) | |
tree | d72d392c5c23dbf601b7b8230fcaf74c3b8e5e7b | |
parent | c211d904ba358d3d1ae85d56fa3a805ea505c23a (diff) | |
download | rails-82e389ed30fd979d4a627b1edbda52c6dde34ae6.tar.gz rails-82e389ed30fd979d4a627b1edbda52c6dde34ae6.tar.bz2 rails-82e389ed30fd979d4a627b1edbda52c6dde34ae6.zip |
reload bob after his journy to a new timezone
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 1 |
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 |