Class: Surrogate::RSpec::VerbMatcher::FailureMessageWithTimes
- Inherits:
-
AbstractFailureMessage
- Object
- AbstractFailureMessage
- Surrogate::RSpec::VerbMatcher::FailureMessageWithTimes
- Defined in:
- lib/surrogate/rspec/verb_matcher.rb
Instance Attribute Summary
Attributes inherited from AbstractFailureMessage
#invocations, #method_name, #times_predicate, #with_filter
Instance Method Summary collapse
Methods inherited from AbstractFailureMessage
#expected_invocation, #expected_times_invoked, #initialize, #inspect_arguments, #times_invoked, #times_msg
Constructor Details
This class inherits a constructor from Surrogate::RSpec::AbstractFailureMessage
Instance Method Details
#get_message ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/surrogate/rspec/verb_matcher.rb', line 31 def = "should have been told to #{ method_name } #{ times_msg expected_times_invoked } with #{ inspect_arguments expected_invocation }, but " if times_invoked.zero? << "was never told to" else << "got it #{times_msg times_invoked}" end end |