Method: Test::Unit::Assertions#assert
- Defined in:
- lib/test/unit/assertions.rb
#assert(boolean, message = nil) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/test/unit/assertions.rb', line 60 def assert(boolean, =nil) _wrap_assertion do assert_block("assert should not be called with a block.") { !block_given? } assert_block((, "<?> is not true.", boolean)) { boolean } end end |