@private
# File lib/rspec/expectations/handler.rb, line 73 def self.does_not_match?(matcher, actual, &block) if matcher.respond_to?(:does_not_match?) matcher.does_not_match?(actual, &block) else !matcher.matches?(actual, &block) end end
# File lib/rspec/expectations/handler.rb, line 66 def self.handle_matcher(actual, initial_matcher, message=nil, &block) matcher = ExpectationHelper.setup(self, initial_matcher, message) return ::RSpec::Matchers::BuiltIn::NegativeOperatorMatcher.new(actual) unless initial_matcher !(does_not_match?(matcher, actual, &block) || ExpectationHelper.handle_failure(matcher, message, :failure_message_when_negated)) end
# File lib/rspec/expectations/handler.rb, line 89 def self.opposite_should_method :should end
Generated with the Darkfish Rdoc Generator 2.