-
-
Notifications
You must be signed in to change notification settings - Fork 261
Open
Description
I'm trying to build oj locally and get this failure when running tests.
With REAL_JSON_GEM == true and JSON::VERSION == "2.18.0", this spec is failing on Ruby 3.4.7 and 4.0.1
===============================================================================
Failure: test_parse_json(JSONGenericObjectTest):
<{"a"=>1, "b"=>2, "json_class"=>"JSON::GenericObject"}> was expected to be kind_of?
<JSON::GenericObject> but was
<Hash>.
test/json_gem/json_generic_object_test.rb:39:in 'JSONGenericObjectTest#test_parse_json'
36: # JSON after 2.10 no longer allows GenericObject creatable to be turned off or so it appears.
37: pp REAL_JSON_GEM, JSON::VERSION # added by me for debugging
38: ch = JSON::GenericObject if REAL_JSON_GEM && ([2, 11, 0] <=> JSON::VERSION.split('.').map { |v| v.to_i }) <= 0
=> 39: assert_kind_of ch,
40: JSON(
41: '{ "json_class": "JSON::GenericObject", "a": 1, "b": 2 }',
42: :create_additions => true
===============================================================================
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels