Method: Test::Unit::Assertions#assert_block
- Defined in:
- lib/test/unit/assertions.rb
#assert_block(message = "assert_block failed.") ⇒ Object
:yields:
45 46 47 48 49 50 51 |
# File 'lib/test/unit/assertions.rb', line 45 def assert_block(="assert_block failed.") # :yields: _wrap_assertion do if (! yield) raise AssertionFailedError.new(.to_s) end end end |