Parent

Class/Module Index [+]

Quicksearch

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 44
def self.handle_matcher(actual, initial_matcher, message=nil, &block)
  matcher = ExpectationHelper.setup(self, initial_matcher, message)

  return ::RSpec::Matchers::BuiltIn::PositiveOperatorMatcher.new(actual) unless initial_matcher
  matcher.matches?(actual, &block) || ExpectationHelper.handle_failure(matcher, message, :failure_message)
end
opposite_should_method() click to toggle source
# File lib/rspec/expectations/handler.rb, line 59
def self.opposite_should_method
  :should_not
end
should_method() click to toggle source
# File lib/rspec/expectations/handler.rb, line 55
def self.should_method
  :should
end
verb() click to toggle source
# File lib/rspec/expectations/handler.rb, line 51
def self.verb
  "should"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.