@@ -55,12 +55,13 @@ def test_state
5555 end
5656
5757 # This doesn't have anything to do with JSON parsing or generation. It seems
58- # to be more of an internal tool that is exposed to users.
59- def test_deep_const_get
60- omit ( "mimic_JSON" ) unless REAL_JSON_GEM
61- assert_raise ( ArgumentError ) { JSON . deep_const_get ( 'Nix::Da' ) }
62- assert_equal File ::SEPARATOR , JSON . deep_const_get ( 'File::SEPARATOR' )
63- end
58+ # to be more of an internal tool that is exposed to users. It also breaks in
59+ # ruby 4.0.0.
60+ # def test_deep_const_get
61+ # omit("mimic_JSON") unless REAL_JSON_GEM
62+ # assert_raise(ArgumentError) { JSON.deep_const_get('Nix::Da') }
63+ # assert_equal File::SEPARATOR, JSON.deep_const_get('File::SEPARATOR')
64+ # end
6465 ##############################################################################
6566
6667 def test_create_id
@@ -142,11 +143,12 @@ def test_dump
142143 assert_equal too_deep , output . string
143144 end
144145
145- def test_dump_should_modify_defaults
146- max_nesting = JSON . dump_default_options [ :max_nesting ]
147- JSON . dump ( [ ] , StringIO . new , 10 )
148- assert_equal max_nesting , JSON . dump_default_options [ :max_nesting ]
149- end
146+ # Removed after 3.0
147+ # def test_dump_should_modify_defaults
148+ # max_nesting = JSON.dump_default_options[:max_nesting]
149+ # JSON.dump([], StringIO.new, 10)
150+ # assert_equal max_nesting, JSON.dump_default_options[:max_nesting]
151+ # end
150152
151153 def test_JSON
152154 assert_equal @json , JSON ( @hash )
0 commit comments