In my team's Rails app, our file .rspec includes --profile.
I don't want profile information showing up 99% of the times I run rspec locally. Changing .rspec for the whole team is not an option.
In my file .rspec-local (which is gitignored), I would like to suppress or override the setting in .rspec
Is this possible?
What is the syntax to do suppress an rspec parameter already declared?
Prefix flag options with
no-to override previous declarations. For example,.rspecgets loaded first, then.rspec-localgets loaded second:.rspec:
.rspec-local:
The result is that rspec will run without the profile, and with color.
EDIT: TIL that you can create ~/.rspec in your home directory and it will be loaded for all your projects! Unfortunately, that doesn't work when your tests run inside a docker container.