mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add Style/SelfAssignment Rubocop cop
The cop enforces use of self assignment operator E.g. a=a+2 gets written as a+=2. Also the offenses listed in rubocop.todo.yml have been corrected automatically with the --auto-correct option. Fixes issue #1531
This commit is contained in:
parent
be72b9d02e
commit
cdf794ecbf
5 changed files with 7 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ RSpec.configure do |config|
|
|||
config.after(:each, type: :feature) do
|
||||
example_filename = RSpec.current_example.full_description
|
||||
example_filename = example_filename.tr(' ', '_')
|
||||
example_filename = example_filename + '.html'
|
||||
example_filename += '.html'
|
||||
example_filename = File.expand_path(example_filename, Capybara.save_and_open_page_path)
|
||||
if RSpec.current_example.exception.present?
|
||||
save_page(example_filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue