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:
parent
e0bfdb23af
commit
a2b3f2014c
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue