method
failure_message_for_should
1.2.8 -
Show latest stable
-
0 notes -
Class: Spec::Matchers::SimpleMatcher
- 1.1.4
- 1.1.12
- 1.2.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/simple_matcher.rb, line 26 def failure_message_for_should @failure_message || (@description.nil? ? explanation : %[expected #{@description.inspect} but got #{@given.inspect}]) end