diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-07 22:23:38 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-07 22:23:38 +0000 |
commit | de4fde9095c5380e8cef0a188d244a10f9184d6d (patch) | |
tree | 540581a54cefcdc817577f646f09372f7e9936d1 /test/rdoc/test_rdoc_ri_driver.rb | |
parent | ee61f5b40242dbec7fb45d25c5d44dfcfe556526 (diff) | |
download | ruby-de4fde9095c5380e8cef0a188d244a10f9184d6d.tar.gz |
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta2
Fixed ri parse defect with left-hand matched classes.
https://github.com/rdoc/rdoc/pull/420
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_ri_driver.rb')
-rw-r--r-- | test/rdoc/test_rdoc_ri_driver.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb index ba334d3708..144e74f825 100644 --- a/test/rdoc/test_rdoc_ri_driver.rb +++ b/test/rdoc/test_rdoc_ri_driver.rb @@ -852,6 +852,20 @@ Foo::Bar#bother assert_equal 'Foo::Bar', @driver.expand_class('F::B') end + def test_expand_class_3 + @store1 = RDoc::RI::Store.new @home_ri, :home + + @top_level = @store1.add_file 'file.rb' + + @cFoo = @top_level.add_class RDoc::NormalClass, 'Foo' + @mFox = @top_level.add_module RDoc::NormalModule, 'FooBar' + @store1.save + + @driver.stores = [@store1] + + assert_equal 'Foo', @driver.expand_class('Foo') + end + def test_expand_name util_store @@ -1452,4 +1466,3 @@ Foo::Bar#bother end end - |