Parent

Class/Module Index [+]

Quicksearch

RSpec::Mocks::Matchers::HaveReceived

Public Class Methods

new(method_name) click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 9
def initialize(method_name)
  @method_name = method_name
  @constraints = []
  @subject = nil
end

Public Instance Methods

description() click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 36
def description
  expect.description
end
does_not_match?(subject) click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 21
def does_not_match?(subject)
  @subject = subject
  ensure_count_unconstrained
  @expectation = expect.never
  expected_messages_received?
end
failure_message() click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 28
def failure_message
  generate_failure_message
end
matches?(subject) click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 15
def matches?(subject)
  @subject = subject
  @expectation = expect
  expected_messages_received?
end
negative_failure_message() click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 32
def negative_failure_message
  generate_failure_message
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.