method
failure_message_for_should

1.2.8 -
Show latest stable
-
0 notes -
Class: Spec::Matchers::Be
- 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/be.rb, line 32 def failure_message_for_should if handling_predicate? if predicate == :nil? "expected nil, got #{@actual.inspect}" else "expected #{predicate}#{args_to_s} to return true, got #{@result.inspect}" end else "expected #{@comparison_method} #{expected}, got #{@actual.inspect}".gsub(' ',' ') end end