Make features global configuration proof
Created by: pirj
If a ~/.config/rspec/options
file contains the following:
--color
--profile 2
--format progress
--require pry
a number of features fail, since options are picked up and used by the code under test.
Setting XDG_CONFIG_HOME
to a directory that does exist skips loading
the global configuration.
Related: https://github.com/rspec/rspec-dev/issues/217 https://github.com/rspec/rspec-core/pull/2602
NOTE: Unfortunately, this doesn't fix the issue for configuration stored in ~/.rspec
. My advice is to move it over to ~/.config/rspec/options
.