Sha256: 6a3363fed69c51cb55ccca99a393186e6b947f595b5b56b7e1af8e7f016353a1
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
module Hardmock # Raised when: # * Unexpected method is called on a mock object # * Bad arguments passed to an expected call class ExpectationError < StandardError #:nodoc:# end # Raised for methods that should no longer be called. Hopefully, the exception message contains helpful alternatives. class DeprecationError < StandardError #:nodoc:# end # Raised when stubbing fails class StubbingError < StandardError #:nodoc:# end # Raised when it is discovered that an expected method call was never made. class VerifyError < StandardError #:nodoc:# def initialize(msg,unmet_expectations) super("#{msg}:" + unmet_expectations.map { |ex| "\n * #{ex.to_s}" }.join) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-0.29.1 | vendor/hardmock/lib/hardmock/errors.rb |
ceedling-0.29.0 | vendor/hardmock/lib/hardmock/errors.rb |