From 82e389ed30fd979d4a627b1edbda52c6dde34ae6 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Fri, 20 Aug 2010 19:46:30 -0700 Subject: reload bob after his journy to a new timezone --- activerecord/test/cases/migration_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/cases/migration_test.rb') 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 -- cgit v1.2.3