Class: RSpec::Expectations::PositiveExpectationHandler Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rspec-expectations/lib/rspec/expectations/handler.rb |
Class Method Summary
- .handle_matcher(actual, initial_matcher, custom_message = nil, &block) Internal use only
- .opposite_should_method Internal use only
- .should_method Internal use only
- .verb Internal use only
Class Method Details
.handle_matcher(actual, initial_matcher, custom_message = nil, &block)
[ GitHub ]# File 'rspec-expectations/lib/rspec/expectations/handler.rb', line 46
def self.handle_matcher(actual, initial_matcher, =nil, &block) ExpectationHelper.with_matcher(self, initial_matcher, ) do |matcher| return ::RSpec::Matchers::BuiltIn::PositiveOperatorMatcher.new(actual) unless initial_matcher match_result = matcher.matches?(actual, &block) if && match_result.respond_to?(:error_generator) match_result.error_generator.opts[: ] = end match_result || ExpectationHelper.handle_failure(matcher, , : ) end end
.opposite_should_method
[ GitHub ]# File 'rspec-expectations/lib/rspec/expectations/handler.rb', line 67
def self.opposite_should_method :should_not end
.should_method
[ GitHub ]# File 'rspec-expectations/lib/rspec/expectations/handler.rb', line 63
def self.should_method :should end
.verb
[ GitHub ]# File 'rspec-expectations/lib/rspec/expectations/handler.rb', line 59
def self.verb 'is expected to' end