diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-07 02:51:12 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-07 02:51:12 +0000 |
commit | 134de16803af02ded1a390d67a919ade19955f8a (patch) | |
tree | fa88c36c70c009bcc0cebab9b57fda9a3c0253cc /lib/rdoc/test_case.rb | |
parent | 92898f801d353e656935d48cb0c340fc158d77c6 (diff) | |
download | ruby-134de16803af02ded1a390d67a919ade19955f8a.tar.gz |
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta1
This version is mostly same as r56072. It contains to remove code
for Ruby 1.8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/test_case.rb')
-rw-r--r-- | lib/rdoc/test_case.rb | 10 |
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' - |