class RSpec::Expectations::PositiveExpectationHandler

@private

Public Class Methods

# File rspec-expectations/lib/rspec/expectations/handler.rb, line 38
def self.handle_matcher(actual, initial_matcher, custom_message=nil, &block)
  ExpectationHelper.with_matcher(self, initial_matcher, custom_message) do |matcher|
    match_result = matcher.matches?(actual, &block)
    if custom_message && match_result.respond_to?(:error_generator)
      match_result.error_generator.opts[:message] = custom_message
    end

    match_result || ExpectationHelper.handle_failure(matcher, custom_message, :failure_message)
  end
end
# File rspec-expectations/lib/rspec/expectations/handler.rb, line 49
def self.verb
  'is expected to'
end