From 10f8c46119470d83a406ab3efde688ef9dcc53b7 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Tue, 16 Apr 2024 13:27:34 +0200 Subject: [PATCH] Update rubocop-rails to version 2.24.1 --- Gemfile.lock | 4 ++-- spec/support/save_feature_failures.rb | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1a2b9a2725..5f3009cc3b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -477,7 +477,7 @@ GEM rspec-mocks (~> 3.13) rspec-support (~> 3.13) rspec-support (3.13.1) - rubocop (1.62.1) + rubocop (1.63.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -497,7 +497,7 @@ GEM rubocop-performance (1.21.0) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rails (2.24.0) + rubocop-rails (2.24.1) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) diff --git a/spec/support/save_feature_failures.rb b/spec/support/save_feature_failures.rb index 3f7129c418..fb35bfe173 100644 --- a/spec/support/save_feature_failures.rb +++ b/spec/support/save_feature_failures.rb @@ -7,13 +7,15 @@ example_filename = File.expand_path(example_filename, Capybara.save_path) example_screenshotname = "#{example_filename}.png" example_filename += '.html' + # rubocop:disable Lint/Debugger if RSpec.current_example.exception.present? save_page(example_filename) - save_screenshot(example_screenshotname) # rubocop:disable Lint/Debugger + save_screenshot(example_screenshotname) # remove the file if the test starts working again else File.unlink(example_filename) if File.exist?(example_filename) File.unlink(example_screenshotname) if File.exist?(example_screenshotname) end + # rubocop:enable Lint/Debugger end end