Flowdock
method

be_close

Importance_1
be_close(expected, delta) public

Passes if actual == expected +/- delta

Example

  result.should be_close(3.0, 0.5)
Show source
Register or log in to add new notes.
December 1, 2012
0 thanks

This method is deprecated in rspec 2.0

  • be_close(1, 0.1) is deprecated.

  • please use be_within(0.1).of(1) instead.