aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_ri_driver.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-10 06:36:13 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-10 06:36:13 +0000
commit1325437297539bf433904b64db63a3186e62177e (patch)
tree01608a107ec3939b1013152d961b6407a5ba9c25 /test/rdoc/test_rdoc_ri_driver.rb
parentce2b574017cacc2c3f2b0e92f82a7f250639fc34 (diff)
downloadruby-1325437297539bf433904b64db63a3186e62177e.tar.gz
* lib/rdoc: Import RDoc 2.5.2
* lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): Don't parse rdoc files, reverts r24976 in favor of include directive support in C parser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_ri_driver.rb')
-rw-r--r--test/rdoc/test_rdoc_ri_driver.rb18
1 files changed, 14 insertions, 4 deletions
diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb
index c41a130e77..2e89c70d19 100644
--- a/test/rdoc/test_rdoc_ri_driver.rb
+++ b/test/rdoc/test_rdoc_ri_driver.rb
@@ -366,7 +366,6 @@ class TestRDocRIDriver < MiniTest::Unit::TestCase
assert_match %r%Foo::Bar#blah%, out
assert_match %r%blah.5%, out
assert_match %r%blah.6%, out
- assert_match %r%yields: stuff%, out
end
def test_display_method_attribute
@@ -425,6 +424,16 @@ Foo::Bar#bother
assert_equal expected, out
end
+ def test_display_method_params
+ util_store
+
+ out, err = capture_io do
+ @driver.display_method 'Foo::Bar#bother'
+ end
+
+ assert_match %r%things.*stuff%, out
+ end
+
def test_expand_class
util_store
@@ -511,7 +520,7 @@ Foo::Bar#bother
util_store
out, err = capture_io do
- @driver.list_known_classes
+ @driver.list_known_classes
end
assert_equal "Ambiguous\nFoo\nFoo::Bar\nFoo::Baz\nInc\n", out
@@ -675,7 +684,7 @@ Foo::Bar#bother
def test_setup_pager
@driver.use_stdout = false
- pager = with_dummy_pager {@driver.setup_pager}
+ pager = with_dummy_pager do @driver.setup_pager end
skip "couldn't find a standard pager" unless pager
@@ -776,9 +785,10 @@ Foo::Bar#bother
@blah = RDoc::AnyMethod.new nil, 'blah'
@blah.call_seq = "blah(5) => 5\nblah(6) => 6\n"
- @blah.block_params = "stuff"
@bother = RDoc::AnyMethod.new nil, 'bother'
+ @bother.params = "(things)"
+ @bother.block_params = "stuff"
@new = RDoc::AnyMethod.new nil, 'new'
@new.singleton = true