diff --git a/test/t/syntax.rb b/test/t/syntax.rb index 461f5430b..299394557 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -381,7 +381,7 @@ assert('splat in case statement') do end assert('External command execution.') do - class << Kernel + module Kernel sym = '`'.to_sym alias_method :old_cmd, sym