aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_ri_driver.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-21 18:35:14 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-21 18:35:14 +0000
commitcd9e9c6debcf893ea5fa70e42dc1875afaf0066f (patch)
tree5921615c87529d73ed017b58ee1ce57ef6861cfc /test/rdoc/test_rdoc_ri_driver.rb
parentc62db0676bbb8051dac4f462240962e044db6cd4 (diff)
downloadruby-cd9e9c6debcf893ea5fa70e42dc1875afaf0066f.tar.gz
Update to RDoc 2.1.0 r112
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_ri_driver.rb')
-rw-r--r--test/rdoc/test_rdoc_ri_driver.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb
index 5db831915a..cddd4e60d1 100644
--- a/test/rdoc/test_rdoc_ri_driver.rb
+++ b/test/rdoc/test_rdoc_ri_driver.rb
@@ -41,11 +41,7 @@ class TestRDocRIDriver < Test::Unit::TestCase
def test_lookup_method_class_missing
def @driver.load_cache_for(klassname) end
- e = assert_raise RDoc::RI::Driver::NotFoundError do
- @driver.lookup_method 'Foo#bar', 'Foo'
- end
-
- assert_equal 'Nothing known about Foo#bar', e.message
+ assert_nil @driver.lookup_method('Foo#bar', 'Foo')
end
def test_lookup_method_dot_instance
@@ -67,11 +63,7 @@ class TestRDocRIDriver < Test::Unit::TestCase
def test_lookup_method_method_missing
def @driver.load_cache_for(klassname) {} end
- e = assert_raise RDoc::RI::Driver::NotFoundError do
- @driver.lookup_method 'Foo#bar', 'Foo'
- end
-
- assert_equal 'Nothing known about Foo#bar', e.message
+ assert_nil @driver.lookup_method('Foo#bar', 'Foo')
end
def test_parse_name