From a2b3f2014cf15daa4b608b82a8432b46a13c0e54 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 26 Jun 2022 15:09:56 +0900 Subject: [PATCH] [ruby/irb] Require stringio to use StringIO https://github.com/ruby/irb/commit/e024ab716b --- test/irb/test_context.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index ad842c2725..b041403cb9 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -132,6 +132,7 @@ module TestIRB end def test_output_to_pipe + require 'stringio' input = TestInputMethod.new(["n=1"]) input.instance_variable_set(:@stdout, StringIO.new) irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new), input)