You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[EDIT:] To make it clear, this related to running this project's test suite. In my case because I wanted to contribute patches. This is not something that happens to project using this gem.
I have a ~/.rspec file that contains --color. This causes all tests to fail. Putting a .rspec file in the repo with either --no-color or nothing at all does not fix it.
Removing my ~/.rspec file causes the tests to work again.
Overriding $HOME and $XDG_CONFIG_HOME when executing rspec seems to work for me, but I wonder if there are any other dangerous effects of this.
In theory, one could also refactor the runner so that color enabling isn't just set in the RSpec configuration but is also passed along to the rspec command itself. That would be more stable, even though it might still have issues with other things set up in the user's config.
The text was updated successfully, but these errors were encountered:
Hey! Sorry for the delay on this. I'm not exactly sure why this is happening, but I was able to reproduce this bug successfully and fix this. Give this branch/PR a shot and see if this fixes the issue for you: #62
[EDIT:] To make it clear, this related to running this project's test suite. In my case because I wanted to contribute patches. This is not something that happens to project using this gem.
I have a
~/.rspec
file that contains--color
. This causes all tests to fail. Putting a.rspec
file in the repo with either--no-color
or nothing at all does not fix it.Removing my
~/.rspec
file causes the tests to work again.Overriding
$HOME
and$XDG_CONFIG_HOME
when executingrspec
seems to work for me, but I wonder if there are any other dangerous effects of this.XDG_CONFIG_HOME=/tmp HOME=/tmp SPEC_OPTS="" rspec ./spec/integration/rspec/contain_exactly_matcher_spec.rb:146
In theory, one could also refactor the runner so that color enabling isn't just set in the RSpec configuration but is also passed along to the
rspec
command itself. That would be more stable, even though it might still have issues with other things set up in the user's config.The text was updated successfully, but these errors were encountered: