You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rubygem-rouge/SOURCES/spec_helper_assert.rb

25 lines
384 B

module Minitest
module Assertions
alias_method :assert_orig, :assert
alias_method :refute_orig, :refute
def assert(test = nil, msg = nil, &block)
if block_given?
assert_orig yield
else
assert_orig test, msg
end
end
def refute(test = nil, msg = nil, &block)
if block_given?
refute_orig yield
else
refute_orig test, msg
end
end
end
end