method
failure_message_for_should
1.2.8 -
Show latest stable
-
0 notes -
Class: Spec::Matchers::ThrowSymbol
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
failure_message_for_should()
public
Hide source
# File lib/spec/matchers/throw_symbol.rb, line 44 def failure_message_for_should if @caught_symbol "expected #{expected}, got #{@caught_symbol.inspect}" else "expected #{expected} but nothing was thrown" end end