1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Require stringio to use StringIO

https://github.com/ruby/irb/commit/e024ab716b
This commit is contained in:
Nobuyoshi Nakada 2022-06-26 15:09:56 +09:00 committed by git
parent e0bfdb23af
commit a2b3f2014c

View file

@ -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)