Autocorrect for Minitest/EmptyLineBeforeAssertionMethods
with trailing comments
#190
Labels
bug
Something isn't working
This code:
Gets flagged as a
Minitest/EmptyLineBeforeAssertionMethods
offense.Run
rubocop -a --only=Minitest/EmptyLineBeforeAssertionMethods
to do the correction.Expected behavior
Expected that a newline would be added before the
assert_equal
line:I18n.with_locale(:dummy) do value = I18n.t("name_formatter.display_full_name") # From en + assert_equal("%{first_name} %{last_name}", value) end
Actual behavior
A newline is added after the
value =
line, but before the comment on the line:RuboCop version
The text was updated successfully, but these errors were encountered: