aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_ri_driver.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-08-16 06:45:36 +0900
committeraycabta <aycabta@gmail.com>2019-08-16 06:45:36 +0900
commita458317b914579c8a042ed02592af3a92aa41d1b (patch)
treec8cf7225a6eefcad40f07f67f0b08477427b7462 /test/rdoc/test_rdoc_ri_driver.rb
parentf71bd7477e84eb1cd10fa27e79b1e081ee51793a (diff)
downloadruby-a458317b914579c8a042ed02592af3a92aa41d1b.tar.gz
Use assert_raise and skip for test/unit
Diffstat (limited to 'test/rdoc/test_rdoc_ri_driver.rb')
-rw-r--r--test/rdoc/test_rdoc_ri_driver.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb
index 9bb87b28d1..fc51aeb87e 100644
--- a/test/rdoc/test_rdoc_ri_driver.rb
+++ b/test/rdoc/test_rdoc_ri_driver.rb
@@ -751,7 +751,7 @@ Foo::Bar#bother
def test_display_name_not_found_special
util_store
- assert_raises RDoc::RI::Driver::NotFoundError do
+ assert_raise RDoc::RI::Driver::NotFoundError do
assert_equal false, @driver.display_name('Set#[]')
end
end
@@ -887,7 +887,7 @@ Foo::Bar#bother
assert_equal 'Foo', @driver.expand_class('F')
assert_equal 'Foo::Bar', @driver.expand_class('F::Bar')
- assert_raises RDoc::RI::Driver::NotFoundError do
+ assert_raise RDoc::RI::Driver::NotFoundError do
@driver.expand_class 'F::B'
end
end
@@ -903,7 +903,7 @@ Foo::Bar#bother
@store1.save
@driver.stores = [@store1]
- assert_raises RDoc::RI::Driver::NotFoundError do
+ assert_raise RDoc::RI::Driver::NotFoundError do
@driver.expand_class 'F'
end
assert_equal 'Foo::Bar', @driver.expand_class('F::Bar')
@@ -931,7 +931,7 @@ Foo::Bar#bother
assert_equal 'Foo', @driver.expand_name('F')
assert_equal 'Foo::Bar#', @driver.expand_name('F::Bar#')
- e = assert_raises RDoc::RI::Driver::NotFoundError do
+ e = assert_raise RDoc::RI::Driver::NotFoundError do
@driver.expand_name 'Z'
end
@@ -942,7 +942,7 @@ Foo::Bar#bother
assert_equal 'ruby:README', @driver.expand_name('ruby:README')
assert_equal 'ruby:', @driver.expand_name('ruby:')
- e = assert_raises RDoc::RI::Driver::NotFoundError do
+ e = assert_raise RDoc::RI::Driver::NotFoundError do
@driver.expand_name 'nonexistent_gem:'
end
@@ -1021,7 +1021,7 @@ Foo::Bar#bother
assert_equal 'gem-1.0', @driver.find_store('gem-1.0')
assert_equal 'gem-1.0', @driver.find_store('gem')
- e = assert_raises RDoc::RI::Driver::NotFoundError do
+ e = assert_raise RDoc::RI::Driver::NotFoundError do
@driver.find_store 'nonexistent'
end
@@ -1029,21 +1029,21 @@ Foo::Bar#bother
end
def test_did_you_mean
- omit 'omit test with did_you_men' unless defined? DidYouMean::SpellChecker
+ skip 'skip test with did_you_men' unless defined? DidYouMean::SpellChecker
util_ancestors_store
- e = assert_raises RDoc::RI::Driver::NotFoundError do
+ e = assert_raise RDoc::RI::Driver::NotFoundError do
@driver.lookup_method 'Foo.i_methdo'
end
assert_equal "Nothing known about Foo.i_methdo\nDid you mean? i_method", e.message
- e = assert_raises RDoc::RI::Driver::NotFoundError do
+ e = assert_raise RDoc::RI::Driver::NotFoundError do
@driver.lookup_method 'Foo#i_methdo'
end
assert_equal "Nothing known about Foo#i_methdo\nDid you mean? i_method", e.message
- e = assert_raises RDoc::RI::Driver::NotFoundError do
+ e = assert_raise RDoc::RI::Driver::NotFoundError do
@driver.lookup_method 'Foo::i_methdo'
end
assert_equal "Nothing known about Foo::i_methdo\nDid you mean? c_method", e.message
@@ -1227,7 +1227,7 @@ Foo::Bar#bother
with_dummy_pager do
@driver.page do |io|
- omit "couldn't find a standard pager" if io == $stdout
+ skip "couldn't find a standard pager" if io == $stdout
assert @driver.paging?
end
@@ -1239,7 +1239,7 @@ Foo::Bar#bother
# this test is too fragile. Perhaps using Process.spawn will make this
# reliable
def _test_page_in_presence_of_child_status
- omit 'this test hangs on travis-ci.org' if ENV['CI']
+ skip 'this test hangs on travis-ci.org' if ENV['CI']
@driver.use_stdout = false
with_dummy_pager do
@@ -1407,7 +1407,7 @@ Foo::Bar#bother
pager = with_dummy_pager do @driver.setup_pager end
- omit "couldn't find a standard pager" unless pager
+ skip "couldn't find a standard pager" unless pager
assert @driver.paging?
ensure