mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
15 lines
275 B
Ruby
15 lines
275 B
Ruby
|
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
|