Skip to content

Commit 3804f38

Browse files
committed
define_method is also private at Ruby 2.3 and 2.4
1 parent 6cbadf6 commit 3804f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/json_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def test_string_ext_included_calls_super
397397

398398
Module.send(:alias_method, :included_orig, :included)
399399
Module.send(:remove_method, :included)
400-
Module.define_method(:included) do |base|
400+
Module.send(:define_method, :included) do |base|
401401
included_orig(base)
402402
included = true
403403
end

0 commit comments

Comments
 (0)