README.md in active_mocker-2.3.4 vs README.md in active_mocker-2.4.0.pre1
- old
+ new
@@ -23,10 +23,11 @@
* [Installation](#installation)
* [Setup](#setup)
* [Generate](#generate_mocks)
* [Dependencies](#dependencies)
* [Usage](#usage)
+* [Optional Features](#optional-features)
* [Mocking Methods](#mocking-methods)
* [Managing Mocks](#managing-mocks)
* [ActiveRecord supported methods](#activerecord-supported-methods)
* [Known Limitations](#known-limitations)
* [Inspiration](#inspiration)
@@ -185,9 +186,24 @@
This give the full query API (ie. find_by, where, etc).
This is not feature available in ActiveRecord as such do not include this where you intend to swap in ActiveRecord.
+
+## Optional Features
+
+Use theses defaults if you are starting fresh
+
+```ruby
+ActiveMocker::LoadedMocks.features.enable(:timestamps)
+ActiveMocker::LoadedMocks.features.enable(:delete_all_before_example)
+```
+
+### timestamps
+Enables created_at and updated_at to be update on save and create
+
+### delete_all_before_example
+When using "active_mocker/rspec_helper" it delete all records from all mocks before each example.
## Mocking Methods
#### Rspec 3 Mocks - verify double
Verifying doubles are a stricter alternative to normal doubles that provide guarantees about