diff options
author | Josh Partlow <jpartlow@glatisant.org> | 2011-11-18 21:38:06 -0800 |
---|---|---|
committer | Josh Partlow <jpartlow@glatisant.org> | 2011-11-18 21:38:06 -0800 |
commit | a04856d8ea1bc5e98e9a8ef299dffd6bee365fc1 (patch) | |
tree | 7506dea7244f02bb6219ada1deb8ded6f84ddf9a /tests | |
parent | 4ee26ac90981bbe5d7b5114ddd5036a5cea24251 (diff) | |
download | json-a04856d8ea1bc5e98e9a8ef299dffd6bee365fc1.tar.gz |
Fix for Time.json_create ensures == Time instances for roundtrip through JSON serialization in Ruby 1.9.2.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_json_addition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_json_addition.rb b/tests/test_json_addition.rb index b9cc6d1..49ff437 100755 --- a/tests/test_json_addition.rb +++ b/tests/test_json_addition.rb @@ -129,7 +129,7 @@ class TC_JSONAddition < Test::Unit::TestCase def test_core t = Time.now - assert_equal t.inspect, JSON(JSON(t)).inspect + assert_equal t, JSON(JSON(t)) d = Date.today assert_equal d, JSON(JSON(d)) d = DateTime.civil(2007, 6, 14, 14, 57, 10, Rational(1, 12), 2299161) |