aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-03-27 12:28:32 -0300
committerJosé Valim <jose.valim@gmail.com>2010-03-27 16:44:20 +0100
commit38bb133881a6c22b821d9d4144802d2705258377 (patch)
treef8203ad6c84752566f0410577792be3b0f8884a4 /activesupport
parent820e3a8491100ed24a6a33df07afee341956a45c (diff)
downloadrails-38bb133881a6c22b821d9d4144802d2705258377.tar.gz
rails-38bb133881a6c22b821d9d4144802d2705258377.tar.bz2
rails-38bb133881a6c22b821d9d4144802d2705258377.zip
Ruby's marshaling of Time instances doesn't respect the zone [#4282 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/time_ext_test.rb4
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 08c079e113..bb8256fda9 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