Skip to content

Commit

Permalink
Fix tests so they run even with a global --color setting
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mcmire committed Dec 12, 2019
1 parent e57b6f8 commit 6326f96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def actual_output

def run_command
CommandRunner.run(
"rspec",
"rspec --options /tmp/dummy-rspec-config",
tempfile.to_s,
env: { "DISABLE_PRY" => "true" },
)
Expand Down

0 comments on commit 6326f96

Please sign in to comment.