Method: Spec::Matchers::ThrowSymbol#failure_message_for_should
- Defined in:
- lib/spec/matchers/throw_symbol.rb
permalink #failure_message_for_should ⇒ Object
[View source]
40 41 42 43 44 45 46 |
# File 'lib/spec/matchers/throw_symbol.rb', line 40 def if @caught_symbol "expected #{expected}, got #{@caught_symbol.inspect}" else "expected #{expected} but nothing was thrown" end end |