You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RSpec/Capybara/FeatureMethods will auto-correct to:
RSpec.expect'Shifts report show'doend
But that correction is not safe, since the example group now no longer has type: :feature, which can lead to certain helpers not getting loaded (which is how I discovered the issue).
Either the correction should lead to type: :feature getting added:
The text was updated successfully, but these errors were encountered:
jeppester
changed the title
RSpec/Capybara/FeatureMethods safe autocorrect is not safe
RSpec/Capybara/FeatureMethods auto-correct is not safe
Nov 21, 2023
Given the following file:
RSpec/Capybara/FeatureMethods
will auto-correct to:But that correction is not safe, since the example group now no longer has
type: :feature
, which can lead to certain helpers not getting loaded (which is how I discovered the issue).Either the correction should lead to
type: :feature
getting added:Or the cop should not have auto-correct marked as safe.
Rubocop version: 1.57.2
Rubocop-rspec version: 2.25.0
The text was updated successfully, but these errors were encountered: