Class | FlexMock::Factory |
In: |
lib/flexmock.rb
|
Parent: | Object |
A Factory object is returned from a mock_factory method call. The factory merely returns the manufactured object it is initialized with. The factory is handy to use with class interception, allowing the intercepted class to return the mock object.
If the user needs more control over the mock factory, they are free to create their own.
Typical Usage:
intercept(Bar).in(Foo).with(a_mock.mack_factory)