File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ def to_s; self; end
395
395
def test_string_ext_included_calls_super
396
396
included = false
397
397
398
- Module . alias_method ( : included_orig, :included )
398
+ Module . send ( :alias_method , [ : included_orig, :included ] )
399
399
Module . remove_method ( :included )
400
400
Module . define_method ( :included ) do |base |
401
401
included_orig ( base )
@@ -410,7 +410,7 @@ def test_string_ext_included_calls_super
410
410
ensure
411
411
if Module . private_method_defined? ( :included_orig )
412
412
Module . remove_method ( :included ) if Module . method_defined? ( :included )
413
- Module . alias_method ( : included, :included_orig )
413
+ Module . send ( :alias_method , [ : included, :included_orig ] )
414
414
Module . remove_method ( :included_orig )
415
415
end
416
416
end
You can’t perform that action at this time.
0 commit comments