Flowdock
method

assert_equal

Importance_1
v2_1_10 - Show latest stable - 0 notes - Class: Assertions
assert_equal(exp, act, msg = nil) public

Fails unless exp == act printing the difference between the two, if possible.

If there is no visible difference but the assertion fails, you should suspect that your #== is buggy, or your inspect output is missing crucial details.

For floats use assert_in_delta.

See also: MiniTest::Assertions.diff

Show source
Register or log in to add new notes.