Parent

Class/Module Index [+]

Quicksearch

RSpec::Mocks::Matchers::HaveReceived

@private

Public Class Methods

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

Public Instance Methods

description() click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 46
def description
  expect.description
end
does_not_match?(subject) click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 30
def does_not_match?(subject)
  @subject = subject
  ensure_count_unconstrained
  @expectation = expect.never
  mock_proxy.ensure_implemented(@method_name)
  expected_messages_received_in_order?
end
failure_message() click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 38
def failure_message
  generate_failure_message
end
failure_message_when_negated() click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 42
def failure_message_when_negated
  generate_failure_message
end
matches?(subject, &block) click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 21
def matches?(subject, &block)
  @block ||= block
  @subject = subject
  @expectation = expect
  mock_proxy.ensure_implemented(@method_name)

  expected_messages_received_in_order?
end
name() click to toggle source
# File lib/rspec/mocks/matchers/have_received.rb, line 17
def name
  "have_received"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.