Module | Facon::Mockable |
In: |
lib/facon/mockable.rb
|
A module containing convenient methods for creating mocks, stubs and expectations.
Shortcut for creating a Facon::Mock instance.
mock = mock('test mock', :foo => 'bar') mock.foo # => 'bar'
Verifies that the expectations set on this mock are all met, otherwise raises a MockExpectationError.