ruby-changes:57091
From: Nobuyoshi <ko1@a...>
Date: Fri, 16 Aug 2019 17:29:32 +0900 (JST)
Subject: [ruby-changes:57091] Nobuyoshi Nakada: 03f4a0b18e (master): [ruby/rdoc] Use assert_raise
https://git.ruby-lang.org/ruby.git/commit/?id=03f4a0b18e From 03f4a0b18e9417a82e23523be40ebf0c505faee9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 16 Aug 2019 16:47:09 +0900 Subject: [ruby/rdoc] Use assert_raise https://github.com/ruby/rdoc/commit/f2c63549f7 diff --git a/test/rdoc/test_rdoc_task.rb b/test/rdoc/test_rdoc_task.rb index 383c8f7..d9fc666 100644 --- a/test/rdoc/test_rdoc_task.rb +++ b/test/rdoc/test_rdoc_task.rb @@ -131,7 +131,7 @@ class TestRDocTask < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_task.rb#L131 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 https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_task.rb#L143 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/