mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
e0bfdb23af
commit
a2b3f2014c
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ module TestIRB
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_output_to_pipe
|
def test_output_to_pipe
|
||||||
|
require 'stringio'
|
||||||
input = TestInputMethod.new(["n=1"])
|
input = TestInputMethod.new(["n=1"])
|
||||||
input.instance_variable_set(:@stdout, StringIO.new)
|
input.instance_variable_set(:@stdout, StringIO.new)
|
||||||
irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new), input)
|
irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new), input)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue