1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Import RDoc 3.1

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2010-12-28 22:08:56 +00:00
parent 90d5bcf910
commit e2efe8e81d
28 changed files with 494 additions and 56 deletions

View file

@ -1,11 +1,10 @@
require 'rubygems'
require 'test/unit'
require 'minitest/autorun'
require 'tmpdir'
require 'fileutils'
require 'rdoc/ri/paths'
require_relative '../ruby/envutil'
class TestRDocRIPaths < Test::Unit::TestCase
class TestRDocRIPaths < MiniTest::Unit::TestCase
def setup
RDoc::RI::Paths.instance_variable_set :@gemdirs, %w[/nonexistent/gemdir]
@ -40,9 +39,5 @@ class TestRDocRIPaths < Test::Unit::TestCase
assert_equal '/nonexistent/gemdir', path.shift
end
def test_homeless
bug4202 = '[ruby-core:33867]'
assert(assert_in_out_err([{"HOME"=>nil}, *%w"-rrdoc/ri/paths -e;"], bug4202).success?, bug4202)
end
end