class RSpec::Maybes::PositiveMaybeHandler

@private

Public Class Methods

handle_matcher(actual, initial_matcher, message = nil, &block) click to toggle source
# File lib/rspec/maybes/handlers.rb, line 29
def self.handle_matcher(actual, initial_matcher, message = nil, &block)
  matcher = super

  return ::RSpec::Matchers::BuiltIn::PositiveOperatorMatcher.new(actual) unless initial_matcher
  passes?(matcher) || MaybeHelper.handle_failure(matcher, message, :failure_message)
end
verb() click to toggle source
# File lib/rspec/maybes/handlers.rb, line 36
def self.verb
  'might'
end