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:
parent
02d0d424be
commit
03f4a0b18e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue