diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-16 16:47:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-16 17:28:40 +0900 |
commit | 03f4a0b18e9417a82e23523be40ebf0c505faee9 (patch) | |
tree | caf8cbd0455aeac1915c5819ea588238297641a1 /test | |
parent | 02d0d424be04cb05ce56b7d21cc843345b0d9a2c (diff) | |
download | ruby-03f4a0b18e9417a82e23523be40ebf0c505faee9.tar.gz |
[ruby/rdoc] Use assert_raise
https://github.com/ruby/rdoc/commit/f2c63549f7
Diffstat (limited to 'test')
-rw-r--r-- | test/rdoc/test_rdoc_task.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |