is_equivalent_to: Expectation: is the object equivalent to a value?
Description
Expectation: is the object equivalent to a value? This expectation
tests for equivalency: are two objects equal once their attributes
have been removed.
Usage
is_equivalent_to(expected, label)
Arguments
expected
expected value
label
label of expected object used in error messages. Useful to
override default (deparsed expected expression) when doing tests in a
loop.