Skip to content

vitalinfo/database_leak_finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DatabaseLeakFinder Circle CI

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Find DB leaks in your RSpec tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages