README.md in database_plumber-1.0.0 vs README.md in database_plumber-1.1.0

- old
+ new

@@ -131,11 +131,25 @@ ignored_adapters: [:sqlite], brutal: true end ``` -This is also useful if your test suite is problem-free and you would like ensure it -stays that way. +### Setting thresholds for Models + +You may have some models you would like to report on, but which should also have +entries in the database, for example a table that is seeded or loaded with fixtures. +In order to allow this you can provide a threshold for a Model, which is the +maximum number of entries allowed in the database for the Model before it is +regarded as leaky. + +To provide a threshold for a Model, you can can the following: + +```ruby +config.after(:all) do + # Perform the report after each example group + DatabasePlumber.inspect model_thresholds: { Bar => 3 } +end + ## Contributing 1. Fork it ( https://github.com/brrygrdn/database_plumber/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`)