Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests so they run even with a global --color setting #62

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

mcmire
Copy link
Collaborator

@mcmire mcmire commented Nov 26, 2019

If you have global RSpec settings located at ~/.rspec, and you have
--color as one of your settings, and you try to run the super_diff
tests locally, the integration tests, which ensure that output is
printed in the correct colors and which work by spawning a new rspec
child process for each test, will fail. I'm not exactly sure why this is
happening, but we can get around this by instructing the child rspec
process not to use the global configuration settings.

If you have global RSpec settings located at `~/.rspec`, and you have
`--color` as one of your settings, and you try to run the `super_diff`
tests locally, the integration tests, which ensure that output is
printed in the correct colors and which work by spawning a new `rspec`
child process for each test, will fail. I'm not exactly sure why this is
happening, but we can get around this by instructing the child `rspec`
process not to use the global configuration settings.
@Mange
Copy link
Contributor

Mange commented Dec 11, 2019

Works for me! 👍

@mcmire mcmire merged commit 6326f96 into master Dec 12, 2019
@mcmire mcmire deleted the work-with-global-color-config branch December 18, 2019 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants