ruby/test/json
Jean Boussier ef5565f5d1 JSON.generate: call to_json on String subclasses
Fix: https://github.com/ruby/json/issues/667

This is yet another behavior on which the various implementations
differed, but the C implementation used to call `to_json` on String
subclasses used as keys.

This was optimized out in e125072130229e54a651f7b11d7d5a782ae7fb65
but there is an Active Support test case for it, so it's best to
make all 3 implementation respect this behavior.
2024-11-01 13:04:24 +09:00
..
fixtures
json_addition_test.rb Deprecate unsafe default options of JSON.load 2024-11-01 13:04:24 +09:00
json_common_interface_test.rb Use frozen string literals 2024-10-26 18:44:15 +09:00
json_encoding_test.rb Use frozen string literals 2024-10-26 18:44:15 +09:00
json_ext_parser_test.rb Use frozen string literals 2024-10-26 18:44:15 +09:00
json_fixtures_test.rb Use frozen string literals 2024-10-26 18:44:15 +09:00
json_generator_test.rb JSON.generate: call to_json on String subclasses 2024-11-01 13:04:24 +09:00
json_generic_object_test.rb Use frozen string literals 2024-10-26 18:44:15 +09:00
json_parser_test.rb [ruby/json] Skip test failing on JRuby 2024-11-01 13:04:24 +09:00
json_string_matching_test.rb Use frozen string literals 2024-10-26 18:44:15 +09:00
ractor_test.rb json_pure: fix ractor compatibility 2024-10-26 18:44:15 +09:00
test_helper.rb [ruby/json] Setup ruby_memcheck 2024-11-01 13:04:24 +09:00