Class: DatabaseLeakFinder::Logger
- Inherits:
-
Object
- Object
- DatabaseLeakFinder::Logger
- 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 " \\n\n \#{HighLine.color('#### Leaking Spec', :red)}\n The spec '\#{HighLine.color(spec_path_for(example), :red, :underline)}' leaves the following rows in the database:\n LOG\n leaks.each(&method(:log_leak))\nend\n".strip_heredoc |