module DatabaseLeakFinder

Constants

VERSION

Public Class Methods

config(options) click to toggle source
# File lib/database_leak_finder.rb, line 20
def config(options)
  DatabaseLeakFinder::Handler.config(options)
end
included(base) click to toggle source
# File lib/database_leak_finder.rb, line 8
def included(base)
  base.after(:each) do |example|
    DatabaseLeakFinder::Handler.log_example(example)
  end

  base.after(:all) do
    DatabaseLeakFinder::Handler.find_leaks
  end

  DatabaseLeakFinder.config({}) unless DatabaseLeakFinder::Handler.options
end