aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/test_case.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/test_case.rb')
-rw-r--r--lib/rdoc/test_case.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/rdoc/test_case.rb b/lib/rdoc/test_case.rb
index 1d5469bc19..3b928f2f3d 100644
--- a/lib/rdoc/test_case.rb
+++ b/lib/rdoc/test_case.rb
@@ -177,8 +177,6 @@ class RDoc::TestCase < MiniTest::Unit::TestCase
# Depends upon Dir.mktmpdir
def temp_dir
- skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
-
Dir.mktmpdir do |temp_dir|
Dir.chdir temp_dir do
yield temp_dir
@@ -208,11 +206,3 @@ class RDoc::TestCase < MiniTest::Unit::TestCase
end
end
end
-
-# This hack allows autoload to work when Dir.pwd is changed for Ruby 1.8 since
-# -I paths are not expanded.
-$LOAD_PATH.each do |load_path|
- break if load_path[0] == ?/
- load_path.replace File.expand_path load_path
-end if RUBY_VERSION < '1.9'
-