Easy way to find problem in specs with uncleared DB data
Add the following to your Gemfile:
gem 'database_leak_finder'
Add this line to your spec_helper.rb
config.include DatabaseLeakFinder
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])
- 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