Class: DatabaseLeakFinder::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/database_leak_finder/logger.rb

Instance Method Summary collapse

Instance Method Details

#log(example, leaks) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/database_leak_finder/logger.rb', line 5

def log(example, leaks)
  puts <<-LOG.strip_heredoc
    \n
    #{HighLine.color('#### Leaking Spec', :red)}
    The spec '#{HighLine.color(spec_path_for(example), :red, :underline)}' leaves the following rows in the database:
  LOG
  leaks.each(&method(:log_leak))
end