test/test_object.rb in oj-2.11.3 vs test/test_object.rb in oj-2.11.4
- old
+ new
@@ -472,9 +472,10 @@
def test_odd_date
dump_and_load(Date.new(2012, 6, 19), false)
end
def test_odd_datetime
+ dump_and_load(DateTime.new(2012, 6, 19, 13, 5, Rational(4, 3)), false)
dump_and_load(DateTime.new(2012, 6, 19, 13, 5, Rational(7123456789, 1000000000)), false)
end
def test_odd_string
Oj.register_odd(Strung, Strung, :create, :to_s, 'safe?')