Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/json_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def to_s; self; end
def test_string_ext_included_calls_super
included = false

Module.alias_method(:included_orig, :included)
Module.send(:alias_method, [:included_orig, :included])
Module.remove_method(:included)
Module.define_method(:included) do |base|
included_orig(base)
Expand All @@ -410,7 +410,7 @@ def test_string_ext_included_calls_super
ensure
if Module.private_method_defined?(:included_orig)
Module.remove_method(:included) if Module.method_defined?(:included)
Module.alias_method(:included, :included_orig)
Module.send(:alias_method, [:included, :included_orig])
Module.remove_method(:included_orig)
end
end
Expand Down