diff --git a/test/rdoc/test_rdoc_task.rb b/test/rdoc/test_rdoc_task.rb index 383c8f7321..d9fc6664fd 100644 --- a/test/rdoc/test_rdoc_task.rb +++ b/test/rdoc/test_rdoc_task.rb @@ -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