aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2017-02-22 08:26:06 +0000
committerGitHub <noreply@github.com>2017-02-22 08:26:06 +0000
commitb6bc3433d18111dcddc8106e7745208fe2a9a10f (patch)
treea16fd9aa36d1af062b573dd0cb33c2aa5306145a /activesupport/test/core_ext
parentdf1faf601cb20b5728c95fc10e33b28ae6859bd8 (diff)
parent6560448b460f16db196efe42d5fc3d51b27ea651 (diff)
downloadrails-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.rb1
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