Closed JonRowe closed 2 months ago
Released in 7.1.0
Out of curiosity, @JonRowe: What is the reasoning behind the recommendation to tag specs manually over inferring from location?
A combination of factors, it is better to be explicit about things to improve the "documentation" effect, it makes it less surprising when you include extra helpers into different types of specs and its less brittle as an implementation.
I think this really goes against the naming conventions that Rails instills.
I think this really goes against the naming conventions that Rails instills.
Rails doesn't automatically configure things based on directories either, you inherit from classes e.g. ActionController::Base
We would prefer that people tag their specs manually (or via generators) and whilst our generators do generate tags we never removed the generated
infer_spec_type_from_file_location!
as a default.Fixes #2803