Starting in RSpec 1.2 (and continuing through all 2.x releases), the failure message protocol was:
* `failure_message_for_should` * `failure_message_for_should_not`
@private
# File lib/rspec/expectations/handler.rb, line 130 def self.interface_matches?(matcher) ( !matcher.respond_to?(:failure_message) && matcher.respond_to?(:failure_message_for_should) ) || ( !matcher.respond_to?(:failure_message_when_negated) && matcher.respond_to?(:failure_message_for_should_not) ) end
# File lib/rspec/expectations/handler.rb, line 122 def failure_message base_matcher.failure_message_for_should end
# File lib/rspec/expectations/handler.rb, line 126 def failure_message_when_negated base_matcher.failure_message_for_should_not end