reload bob after his journy to a new timezone

This commit is contained in:
Brian Lopez 2010-08-20 19:46:30 -07:00 committed by Aaron Patterson
parent c211d904ba
commit 82e389ed30
1 changed files with 1 additions and 0 deletions

View File

@ -566,6 +566,7 @@ if ActiveRecord::Base.connection.supports_migrations?
if bob.moment_of_truth.is_a?(DateTime) if bob.moment_of_truth.is_a?(DateTime)
with_env_tz 'US/Eastern' do with_env_tz 'US/Eastern' do
bob.reload
assert_equal DateTime.local_offset, bob.moment_of_truth.offset assert_equal DateTime.local_offset, bob.moment_of_truth.offset
assert_not_equal 0, bob.moment_of_truth.offset assert_not_equal 0, bob.moment_of_truth.offset
assert_not_equal "Z", bob.moment_of_truth.zone assert_not_equal "Z", bob.moment_of_truth.zone