mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Update rubocop-rails to version 2.24.1
This commit is contained in:
parent
75bd3184cd
commit
10f8c46119
2 changed files with 5 additions and 3 deletions
|
|
@ -477,7 +477,7 @@ GEM
|
||||||
rspec-mocks (~> 3.13)
|
rspec-mocks (~> 3.13)
|
||||||
rspec-support (~> 3.13)
|
rspec-support (~> 3.13)
|
||||||
rspec-support (3.13.1)
|
rspec-support (3.13.1)
|
||||||
rubocop (1.62.1)
|
rubocop (1.63.0)
|
||||||
json (~> 2.3)
|
json (~> 2.3)
|
||||||
language_server-protocol (>= 3.17.0)
|
language_server-protocol (>= 3.17.0)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
|
|
@ -497,7 +497,7 @@ GEM
|
||||||
rubocop-performance (1.21.0)
|
rubocop-performance (1.21.0)
|
||||||
rubocop (>= 1.48.1, < 2.0)
|
rubocop (>= 1.48.1, < 2.0)
|
||||||
rubocop-ast (>= 1.31.1, < 2.0)
|
rubocop-ast (>= 1.31.1, < 2.0)
|
||||||
rubocop-rails (2.24.0)
|
rubocop-rails (2.24.1)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
rubocop (>= 1.33.0, < 2.0)
|
rubocop (>= 1.33.0, < 2.0)
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,15 @@ RSpec.configure do |config|
|
||||||
example_filename = File.expand_path(example_filename, Capybara.save_path)
|
example_filename = File.expand_path(example_filename, Capybara.save_path)
|
||||||
example_screenshotname = "#{example_filename}.png"
|
example_screenshotname = "#{example_filename}.png"
|
||||||
example_filename += '.html'
|
example_filename += '.html'
|
||||||
|
# rubocop:disable Lint/Debugger
|
||||||
if RSpec.current_example.exception.present?
|
if RSpec.current_example.exception.present?
|
||||||
save_page(example_filename)
|
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
|
# 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)
|
||||||
File.unlink(example_screenshotname) if File.exist?(example_screenshotname)
|
File.unlink(example_screenshotname) if File.exist?(example_screenshotname)
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Lint/Debugger
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue