Easy way to find problem in specs with uncleared DB data
Installation
Add the following to your Gemfile:
gem 'database_leak_finder'
Usage
Add this line to your spec_helper.rb
config.include DatabaseLeakFinder
Ignoring Tables
You may have some tables that you don't want to report.
Add this line to your spec_helper.rb
before config.include DatabaseLeakFinder
DatabaseLeakFinder.config(ignored_tables: [list of tables])
Contributing
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request