1.times
for block with argument incorrectly auto-corrected
#9907
Labels
1.times
for block with argument incorrectly auto-corrected
#9907
With the following code:
which, when run, outputs:
0
if considered by
rubocop
with--auto-correct-all
enabled, produces the following auto-corrected code:which, when run, outputs:
1
Expected behavior
Auto-correct use of
1.times
to block invocation with0
as the argument.Actual behavior
Auto-correct use of
1.times
to block invocation with1
as the argument.Steps to reproduce the problem
rubocop --auto-correct-all <file.rb>
RuboCop version
The text was updated successfully, but these errors were encountered: