Flowdock
method

assert_block

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Test::Unit::Assertions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

assert_block(*msgs) public

Tests the result of the given block. If the block does not return true, the assertion will fail. The optional failure_message argument is the same as in Assertions#assert.

assert_block do
  [1, 2, 3].any? { |num| num < 1 }
end
Show source
Register or log in to add new notes.