summaryrefslogtreecommitdiff
path: root/lib/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit')
-rw-r--r--lib/test/unit/assertions.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index afc45b6892..788a2e47fb 100644
--- a/lib/test/unit/assertions.rb
+++ b/lib/test/unit/assertions.rb
@@ -191,12 +191,7 @@ module Test
# assert_throw(tag, "#{tag} was not thrown!") do
# throw tag
# end
- def assert_throw(tag, msg = nil)
- catch(tag) do
- yield(tag)
- assert(false, message(msg) {"Expected #{mu_pp(tag)} to have been thrown"})
- end
- end
+ alias assert_throw assert_throws
# :call-seq:
# assert_equal( expected, actual, failure_message = nil )