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
parent 3142c0f164
commit 75f64508de

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)