Method: Spec::Matchers::ThrowSymbol#failure_message_for_should

Defined in:
lib/spec/matchers/throw_symbol.rb

#failure_message_for_shouldObject

[View source]

40
41
42
43
44
45
46
# 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