Skip to content

Commit

Permalink
Fix test suite on Ruby 2.4 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Nov 3, 2024
1 parent 045e58d commit a0d6591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/json/json_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def test_to_json_called_with_state_object
object = Object.new
called = false
argument = nil
object.singleton_class.define_method(:to_json) do |state|
object.singleton_class.send(:define_method, :to_json) do |state|
called = true
argument = state
"<hello>"
Expand Down

0 comments on commit a0d6591

Please sign in to comment.