Consider adding the `:aggregate_failures` metadata to all the RSpec examples by default
I think that would be useful to set the :aggregate_failures
metadata for all the RSpec examples by default since:
- Grouping expectations improves performance, so it's ok if it's done properly (i.e. don't group unrelated expectations)
- There's no drawback to set the
:aggregate_failures
metadata even if the example has only 1 expectation
We could probably do it as follows:
config.define_derived_metadata(file_path: %r{/spec/}) do |metadata|
metadata[:aggregate_failures] = true
end
/cc @rspeicher