From a2091c34ab67aad91fee3cac85103e8ff0ef878c Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sat, 27 Mar 2010 12:28:32 -0300 Subject: [PATCH] Ruby's marshaling of Time instances doesn't respect the zone [#4282 state:resolved] --- activesupport/test/core_ext/time_ext_test.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activesupport/test/core_ext/time_ext_test.rb b/activesupport/test/core_ext/time_ext_test.rb index 08c079e..bb8256f 100644 --- a/activesupport/test/core_ext/time_ext_test.rb +++ b/activesupport/test/core_ext/time_ext_test.rb @@ -769,7 +769,7 @@ class TimeExtMarshalingTest < Test::Unit::TestCase marshaled = Marshal.dump t unmarshaled = Marshal.load marshaled assert_equal t, unmarshaled - assert_equal t.zone, unmarshaled.zone + assert_equal "UTC", unmarshaled.zone end def test_marshaling_with_frozen_utc_instance @@ -785,6 +785,6 @@ class TimeExtMarshalingTest < Test::Unit::TestCase marshaled = Marshal.dump t unmarshaled = Marshal.load marshaled assert_equal t, unmarshaled - assert_equal t.zone, unmarshaled.zone + assert_equal "UTC", unmarshaled.zone end end -- 1.7.0