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

Version Path
ceedling-0.31.1 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.31.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.30.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.28.3 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.28.2 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.28.1 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.27.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.25.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.24.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.22.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.21.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.20.3 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.20.2 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.19.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.18.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.17.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.16.0 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.15.6 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.15.5 vendor/hardmock/lib/hardmock/errors.rb
ceedling-0.15.4 vendor/hardmock/lib/hardmock/errors.rb