method
fail_with
1.1.4 -
Show latest stable
- Class:
Spec::Expectations
fail_with(message, expected=nil, target=nil)public
raises a Spec::Expectations::ExpectationNotMetError with message
When a differ has been assigned and fail_with is passed expected and target, passes them to the differ to append a diff message to the failure message.