Sha256: b98a718928c1a8cc7ff4be9a9eb0846b4935a270fdb4cdaee4742a497b7503d7
Contents?: true
Size: 721 Bytes
Versions: 37
Compression:
Stored size: 721 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
37 entries across 34 versions & 3 rubygems