method
failure_message_for_should
1.3.1 -
Show latest stable
- Class:
Spec::Matchers::ThrowSymbol
failure_message_for_should()public
No documentation available.
# File lib/spec/matchers/throw_symbol.rb, line 40
def failure_message_for_should
if @caught_symbol
"expected #{expected}, got #{@caught_symbol.inspect}"
else
"expected #{expected} but nothing was thrown"
end
end