| Class | NotAMock::Matchers::ResultMatcher |
| In: |
lib/not_a_mock/matchers/result_matcher.rb
|
| Parent: | CallMatcher |
Matcher for
and_returned(...)
# File lib/not_a_mock/matchers/result_matcher.rb, line 9
9: def initialize(result, parent = nil)
10: super parent
11: @result = result
12: end
# File lib/not_a_mock/matchers/result_matcher.rb, line 19
19: def failure_message_without_parents
20: if matched?
21: ", and returned #{@result.inspect}"
22: else
23: ", but didn't return #{@result.inspect}"
24: end
25: end