Rails/ContentTag
creates an invalid method call trying to fix the legacy syntax with parameters
#556
Labels
bug
Something isn't working
The following behavior seems not right, as the transformed expression ends up in error.
rubocop-rails/spec/rubocop/cop/rails/content_tag_spec.rb
Lines 78 to 87 in 7570fb6
Expected behavior
Leave a call with legacy arguments such as
tag(:br, {class: ["strong", "highlight"]}, true, false)
as it as, or convert into something legal and non-deprecated (does it have any outside a raw HTML string?).Actual behavior
It outputs
tag.br({class: ["strong", "highlight"]}, true, false)
, which results in error.Confirmed on my env:
Steps to reproduce the problem
Run Rubocop.
RuboCop version
The text was updated successfully, but these errors were encountered: