Skip to content

Commit

Permalink
Ruby's marshaling of Time instances doesn't respect the zone [#4282 s…
Browse files Browse the repository at this point in the history
…tate:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
spastorino authored and josevalim committed Mar 27, 2010
1 parent 820e3a8 commit 38bb133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/test/core_ext/time_ext_test.rb
Expand Up @@ -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
Expand All @@ -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.