Class | FlexMock::Recorder |
In: |
lib/flexmock/recorder.rb
|
Parent: | Object |
Translate arbitrary method calls into expectations on the given mock object.
Place the record in strict mode. While recording expectations in strict mode, the following will be true.
Strict mode is usually used when giving the recorder to a known good algorithm. Strict mode captures the exact sequence of calls and validate that the code under test performs the exact same sequence of calls.
The recorder may exit strict mode via a should_be_strict(false) call. Non-strict expectations may be recorded at that point, or even explicit expectations (using should_receieve) can be specified.