class RSpec::Expectations::PositiveExpectationHandler

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/rspec/expectations/handler.rbs

class RSpec::Expectations::PositiveExpectationHandler
  def self.handle_matcher: ((Hash | Array[Class] | Array[String]) actual, (RSpec::Matchers::BuiltIn::BePredicate | RSpec::Matchers::BuiltIn::Include | RSpec::Matchers::BuiltIn::All) initial_matcher, ?String? custom_message, ) -> true
end

@private

def self.handle_matcher(actual, initial_matcher, custom_message=nil, &block)

Experimental RBS support (using type sampling data from the type_fusion project).

def self.handle_matcher: (( | Class | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String | String) actual, (RSpec::Matchers::BuiltIn::BePredicate | RSpec::Matchers::BuiltIn::Include | RSpec::Matchers::BuiltIn::All) initial_matcher, ?String? custom_message, ) -> true

This signature was generated using 7 samples from 1 application.

def self.handle_matcher(actual, initial_matcher, custom_message=nil, &block)
  ExpectationHelper.with_matcher(self, initial_matcher, custom_message) do |matcher|
    return ::RSpec::Matchers::BuiltIn::PositiveOperatorMatcher.new(actual) unless initial_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

def self.opposite_should_method

def self.opposite_should_method
  :should_not
end

def self.should_method

def self.should_method
  :should
end

def self.verb

def self.verb
  'is expected to'
end