summaryrefslogtreecommitdiff
path: root/test/stringio
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-12 17:00:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-12 17:00:51 +0000
commit6bbed0e31b1d32808443b3dd3e451aad28d46096 (patch)
treea4b8e71ae84ea8515f5eb9116e5a4d44b0c6e50c /test/stringio
parent945b604e3adc16aaf421a6df80d40a00a70a9226 (diff)
* test: use require_relative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/stringio')
-rw-r--r--test/stringio/test_stringio.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index 570f180..df292e8 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -1,9 +1,6 @@
require 'test/unit'
require 'stringio'
-dir = File.expand_path(__FILE__)
-2.times {dir = File.dirname(dir)}
-$:.replace([File.join(dir, "ruby")] | $:)
-require 'ut_eof'
+require_relative '../ruby/ut_eof'
class TestStringIO < Test::Unit::TestCase
include TestEOF