Module Facon::Mockable
In: lib/facon/mockable.rb

A module containing convenient methods for creating mocks, stubs and expectations.

Methods

Public Instance methods

Shortcut for creating a Facon::Mock instance.

Example

  mock = mock('test mock', :foo => 'bar')
  mock.foo # => 'bar'

Returns the mock proxy object.

Verifies that the expectations set on this mock are all met, otherwise raises a MockExpectationError.

[Validate]