README.md in active_mocker-1.1.4 vs README.md in active_mocker-1.1.5
- old
+ new
@@ -178,41 +178,37 @@
#### #update method
person = PersonMock.create(first_name: 'Justin')
-
person.update(first_name: 'Dustin')
person.first_name
=> 'Dustin'
#### ::destroy_all
- mock_class.create
-
- mock_class.count
+ PersonMock.create
+ PersonMock.count
=> 1
- mock_class.destroy_all
-
- mock_class.count
+ PersonMock.destroy_all
+ PersonMock.count
=> 0
#### ::find_by
person = PersonMock.create(first_name: 'Dustin')
-
PersonMock.find_by(first_name: 'Dustin') == person
=> true
### Known Limitations
* **::mock** model names and table names must follow the default ActiveRecord naming pattern.
-* Included/extended modules will not be loaded unless they are required explicitly.
+* Included/extended module methods will not be included on the mock.
## Contributing
1. Fork it ( http://github.com/zeisler/active_mocker/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)