test/test_object.rb in oj-2.8.0 vs test/test_object.rb in oj-2.8.1
- old
+ new
@@ -414,10 +414,10 @@
def test_odd_date
dump_and_load(Date.new(2012, 6, 19), false)
end
def test_odd_string
- Oj.register_odd(Strung, :create, :to_s, 'safe?')
+ Oj.register_odd(Strung, Strung, :create, :to_s, 'safe?')
s = Strung.new("Pete", true)
dump_and_load(Strung.new("Pete", true), false)
end
def dump_and_load(obj, trace=false)