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

15 lines
275 B
Ruby
Raw Normal View History

require 'test/unit'
$:.replace([File.dirname(File.expand_path(__FILE__))] | $:)
require 'ut_eof'
require 'envutil'
$KCODE = 'none'
class TestPipe < Test::Unit::TestCase
include TestEOF
def open_file(content)
f = IO.popen("echo -n #{content}")
yield f
end
end