5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/database_plumber/report.rb', line 5
def self.on(example, leaks)
puts "\n \#{HighLine.color('#### Leaking Test', :red)}\n\n The spec '\#{HighLine.color(spec_path_for(example), :red, :underline)}' leaves\n the following rows in the database:\n\n REPORT\n\n leaks.each(&method(:print_leak))\n\n puts <<-REPORT.strip_heredoc\n\n \#{HighLine.color('#### What now?', :yellow)}\n\n If you are using \#{HighLine.color('let!', :yellow)} or \#{HighLine.color('before(:all)', :yellow)} please ensure that you use a\n corresponding \#{HighLine.color('after(:all)', :yellow)} block to clean up these rows.\n\n REPORT\nend\n".strip_heredoc
|