diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-02-22 08:26:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-22 08:26:06 +0000 |
commit | b6bc3433d18111dcddc8106e7745208fe2a9a10f (patch) | |
tree | a16fd9aa36d1af062b573dd0cb33c2aa5306145a /activesupport/test/core_ext | |
parent | df1faf601cb20b5728c95fc10e33b28ae6859bd8 (diff) | |
parent | 6560448b460f16db196efe42d5fc3d51b27ea651 (diff) | |
download | rails-b6bc3433d18111dcddc8106e7745208fe2a9a10f.tar.gz rails-b6bc3433d18111dcddc8106e7745208fe2a9a10f.tar.bz2 rails-b6bc3433d18111dcddc8106e7745208fe2a9a10f.zip |
Merge pull request #28104 from HashNotAdam/fix/preload_instance_variables_in_freeze
Preload to_datetime before freezing a TimeWithZone instance
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/time_with_zone_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/time_with_zone_test.rb b/activesupport/test/core_ext/time_with_zone_test.rb index ab5ec98642..1534daacb9 100644 --- a/activesupport/test/core_ext/time_with_zone_test.rb +++ b/activesupport/test/core_ext/time_with_zone_test.rb @@ -507,6 +507,7 @@ class TimeWithZoneTest < ActiveSupport::TestCase assert_nothing_raised do @twz.period @twz.time + @twz.to_datetime end end |