class RSpec::Expectations::PositiveExpectationHandler
@private
Public Class Methods
handle_matcher(actual, initial_matcher, message=nil, &block)
click to toggle source
# File lib/rspec/expectations/handler.rb, line 47 def self.handle_matcher(actual, initial_matcher, message=nil, &block) ExpectationHelper.with_matcher(self, initial_matcher, message) do |matcher| return ::RSpec::Matchers::BuiltIn::PositiveOperatorMatcher.new(actual) unless initial_matcher matcher.matches?(actual, &block) || ExpectationHelper.handle_failure(matcher, message, :failure_message) end end
opposite_should_method()
click to toggle source
# File lib/rspec/expectations/handler.rb, line 62 def self.opposite_should_method :should_not end
should_method()
click to toggle source
# File lib/rspec/expectations/handler.rb, line 58 def self.should_method :should end
verb()
click to toggle source
# File lib/rspec/expectations/handler.rb, line 54 def self.verb 'is expected to' end