Class | Facon::Mock |
In: |
lib/facon/mock.rb
|
Parent: | Object |
A mock object is a ‘fake’ object on which you can impose simulated behavior. Defining expectations and stubs on mock objects allows you to specify object collaboration without needing to actually instantiate those collaborative objects.
mock = mock('A name') mock = mock('Mock person', :name => 'Konata', :sex => 'female')
name | [RW] |