Skip to content

Commit f2c6354

Browse files
committed
Use assert_raise
1 parent 3700ed0 commit f2c6354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rdoc/test_rdoc_task.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_tasks_creation_with_custom_name_hash
131131
assert Rake::Task[:"rdoc"]
132132
assert Rake::Task[:"rdoc:clean"]
133133
assert Rake::Task[:"rdoc:force"]
134-
assert_raises(RuntimeError) { Rake::Task[:clobber_rdoc] }
134+
assert_raise(RuntimeError) { Rake::Task[:clobber_rdoc] }
135135
assert_equal options, rd.name
136136
end
137137

@@ -143,7 +143,7 @@ def test_tasks_creation_with_custom_name_hash_will_use_default_if_an_option_isnt
143143
end
144144

145145
def test_tasks_creation_with_custom_name_hash_raises_exception_if_invalid_option_given
146-
assert_raises(ArgumentError) do
146+
assert_raise(ArgumentError) do
147147
RDoc::Task.new(:foo => "bar")
148148
end
149149

0 commit comments

Comments
 (0)