| Class | NotAMock::Matchers::MethodMatcher |
| In: |
lib/not_a_mock/matchers/method_matcher.rb
|
| Parent: | CallMatcher |
Matcher for
object.should have_received(...)
# File lib/not_a_mock/matchers/method_matcher.rb, line 9
9: def initialize(method, parent = nil)
10: super parent
11: @method = method
12: end
# File lib/not_a_mock/matchers/method_matcher.rb, line 19
19: def failure_message_without_parents
20: if matched?
21: " received #{@method}"
22: else
23: " didn't receive #{@method}"
24: end
25: end