1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rdoc] Use assert_raise

https://github.com/ruby/rdoc/commit/f2c63549f7
This commit is contained in:
Nobuyoshi Nakada 2019-08-16 16:47:09 +09:00
parent 02d0d424be
commit 03f4a0b18e

View file

@ -131,7 +131,7 @@ class TestRDocTask < RDoc::TestCase
assert Rake::Task[:"rdoc"]
assert Rake::Task[:"rdoc:clean"]
assert Rake::Task[:"rdoc:force"]
assert_raises(RuntimeError) { Rake::Task[:clobber_rdoc] }
assert_raise(RuntimeError) { Rake::Task[:clobber_rdoc] }
assert_equal options, rd.name
end
@ -143,7 +143,7 @@ class TestRDocTask < RDoc::TestCase
end
def test_tasks_creation_with_custom_name_hash_raises_exception_if_invalid_option_given
assert_raises(ArgumentError) do
assert_raise(ArgumentError) do
RDoc::Task.new(:foo => "bar")
end