зеркало из https://github.com/github/ruby.git
Prevent accidental use of assert_raises
This commit is contained in:
Родитель
d2166c09b0
Коммит
f159bbd17d
|
@ -3,6 +3,10 @@
|
|||
module Test
|
||||
module Unit
|
||||
module Assertions
|
||||
def assert_raises(*exp, &b)
|
||||
raise NoMethodError, "use assert_raise", caller
|
||||
end
|
||||
|
||||
def _assertions= n # :nodoc:
|
||||
@_assertions = n
|
||||
end
|
||||
|
|
|
@ -563,10 +563,6 @@ module Test
|
|||
assert yield, *msgs
|
||||
end
|
||||
|
||||
def assert_raises(*exp, &b)
|
||||
raise NoMethodError, "use assert_raise", caller
|
||||
end
|
||||
|
||||
# :call-seq:
|
||||
# assert_nothing_thrown( failure_message = nil, &block )
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче