mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
reload bob after his journy to a new timezone
This commit is contained in:
committed by
Aaron Patterson
parent
d0e3323d5b
commit
7dbc99ef0d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user