Permalink
Browse files

Ruby's marshaling of Time instances doesn't respect the zone [#4282 s…

…tate:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 820e3a8 commit 38bb133881a6c22b821d9d4144802d2705258377 @spastorino spastorino committed with josevalim Mar 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/time_ext_test.rb
@@ -769,7 +769,7 @@ def test_marshaling_with_local_instance
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 @@ def test_marshaling_with_frozen_local_instance
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

0 comments on commit 38bb133

Please sign in to comment.