2003-11-18 04:23:07 -05:00
|
|
|
require 'test/unit'
|
|
|
|
require 'stringio'
|
2003-12-04 21:54:48 -05:00
|
|
|
dir = File.expand_path(__FILE__)
|
|
|
|
2.times {dir = File.dirname(dir)}
|
|
|
|
$:.replace([File.join(dir, "ruby")] | $:)
|
|
|
|
require 'ut_eof'
|
2003-11-18 04:23:07 -05:00
|
|
|
|
|
|
|
class TestStringIO < Test::Unit::TestCase
|
2003-12-04 21:54:48 -05:00
|
|
|
include TestEOF
|
|
|
|
def open_file(content)
|
|
|
|
f = StringIO.new(content)
|
|
|
|
yield f
|
2003-11-18 04:23:07 -05:00
|
|
|
end
|
2003-12-09 00:35:16 -05:00
|
|
|
alias open_file_rw open_file
|
2003-12-10 03:16:14 -05:00
|
|
|
|
|
|
|
include TestEOF::Seek
|
2003-11-18 04:23:07 -05:00
|
|
|
end
|