Skip to content

Commit

Permalink
Merge pull request #3351 from openSUSE/depfu/update/rubocop-rails-2.24.1
Browse files Browse the repository at this point in the history
Update rubocop-rails 2.24.0 → 2.24.1 (patch)
  • Loading branch information
hennevogel committed Apr 16, 2024
2 parents aca7274 + 10f8c46 commit 4d855c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -470,7 +470,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)
Expand All @@ -490,7 +490,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)
Expand Down
4 changes: 3 additions & 1 deletion spec/support/save_feature_failures.rb
Expand Up @@ -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

0 comments on commit 4d855c3

Please sign in to comment.