# File lib/rspec/mocks/matchers/have_received.rb, line 36 def description expect.description end
# 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
# File lib/rspec/mocks/matchers/have_received.rb, line 28 def failure_message generate_failure_message end
# File lib/rspec/mocks/matchers/have_received.rb, line 15 def matches?(subject) @subject = subject @expectation = expect expected_messages_received? end
# File lib/rspec/mocks/matchers/have_received.rb, line 32 def negative_failure_message generate_failure_message end
# File lib/rspec/mocks/matchers/have_received.rb, line 9 def initialize(method_name) @method_name = method_name @constraints = [] @subject = nil end