Sha256: 504d375f7f6f4d6c0e6c568b23504b72d9f290eeb842a10fd155e3677c9d4839
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require 'rubygems' require 'minitest/autorun' require 'tmpdir' require 'fileutils' require 'rdoc/ri/paths' class TestRDocRIPaths < MiniTest::Unit::TestCase def test_class_path_nonexistent path = RDoc::RI::Paths.path true, true, true, true, '/nonexistent' refute_includes path, '/nonexistent' end def test_class_raw_path path = RDoc::RI::Paths.raw_path true, true, true, true assert_equal RDoc::RI::Paths::SYSDIR, path.shift assert_equal RDoc::RI::Paths::SITEDIR, path.shift assert_equal RDoc::RI::Paths::HOMEDIR, path.shift refute_empty path assert_kind_of String, path.first end def test_class_raw_path_extra_dirs path = RDoc::RI::Paths.raw_path true, true, true, true, '/nonexistent' assert_equal '/nonexistent', path.shift assert_equal RDoc::RI::Paths::SYSDIR, path.shift assert_equal RDoc::RI::Paths::SITEDIR, path.shift assert_equal RDoc::RI::Paths::HOMEDIR, path.shift refute_empty path assert_kind_of String, path.first end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rdoc-2.5 | test/test_rdoc_ri_paths.rb |