class RSpec::Expectations::LegacyMatcherAdapter::RSpec2
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
Public Class Methods
# File rspec-expectations/lib/rspec/expectations/handler.rb, line 141 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
Public Instance Methods
# File rspec-expectations/lib/rspec/expectations/handler.rb, line 133 def failure_message base_matcher.failure_message_for_should end
# File rspec-expectations/lib/rspec/expectations/handler.rb, line 137 def failure_message_when_negated base_matcher.failure_message_for_should_not end