Work around RuboCop false positive

Details: rubocop-hq/rubocop#7853
This commit is contained in:
Andrew Kvalheim 2020-04-05 10:20:46 -07:00 committed by Henne Vogelsang
parent 0df16e4773
commit c0913ab723
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0

View file

@ -9,7 +9,7 @@ RSpec.configure do |config|
example_filename += '.html' example_filename += '.html'
if RSpec.current_example.exception.present? if RSpec.current_example.exception.present?
save_page(example_filename) save_page(example_filename)
save_screenshot(example_screenshotname) save_screenshot(example_screenshotname) # rubocop:disable Lint/Debugger
# remove the file if the test starts working again # remove the file if the test starts working again
else else
File.unlink(example_filename) if File.exist?(example_filename) File.unlink(example_filename) if File.exist?(example_filename)