disu.se

MockClass

Namespace

Lookout

Ancestors
  1. Stub

  2. Object

Object that doesn’t respond to anything except for what’s been explicitly defined on it and throws a mock error whenever it receives a method call.

Constructor

This class inherits its constructor from Stub.

Dynamic Method Handling

This class handles dynamic methods through #method_missing.

method_missing(methodSymbol, *argsObject*)private#

RaisesReception::Error

When called, including the method that was called and with what args in the messaged and with the proper backtrace, making it easy to see where things went wrong