Exception: Hardmock::VerifyError
- Defined in:
- lib/hardmock/errors.rb
Overview
Raised when it is discovered that an expected method call was never made.
Instance Method Summary collapse
-
#initialize(msg, unmet_expectations) ⇒ VerifyError
constructor
:nodoc:#.
Constructor Details
#initialize(msg, unmet_expectations) ⇒ VerifyError
:nodoc:#
18 19 20 |
# File 'lib/hardmock/errors.rb', line 18 def initialize(msg,unmet_expectations) super("#{msg}:" + unmet_expectations.map { |ex| "\n * #{ex.to_s}" }.join) end |