-
-
Notifications
You must be signed in to change notification settings - Fork 1k
InferredSpecType not working with Rails 8. #2815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Okay, it feels the InferredSpecType is failing to do its job, adding
Is passing |
Is this spec generated or hand-written? With inferring option and turned off, you have to add type metadata. The cop doesn’t fail, it is marked as unsafe and for a good reason - it has no way to know if inferring is on or off. If inferring is off, disable it immediately the cop, it’s what its doc says. |
Okay, I see this is a recent change Comment out infer_spec_type_from_file_location! in generated rails_helper.rb, I use a template to set up my rails app, I did not spot that regression. Thanks. |
The exact same view spec pass with
but fails with
The text was updated successfully, but these errors were encountered: