Time zone tests were right all along.

This commit is contained in:
José Valim 2010-03-28 05:38:32 +02:00
parent edd59b7bb9
commit 8398f21880

@ -761,7 +761,7 @@ def test_marshaling_with_utc_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_local_instance
@ -769,7 +769,7 @@ def test_marshaling_with_local_instance
marshaled = Marshal.dump t
unmarshaled = Marshal.load marshaled
assert_equal t, unmarshaled
assert_equal "UTC", unmarshaled.zone
assert_equal t.zone, unmarshaled.zone
end
def test_marshaling_with_frozen_utc_instance
@ -777,7 +777,7 @@ def test_marshaling_with_frozen_utc_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_local_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 "UTC", unmarshaled.zone
assert_equal t.zone, unmarshaled.zone
end
end