Skip to content

Commit 6326f96

Browse files
committed
Fix tests so they run even with a global --color setting
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.
1 parent e57b6f8 commit 6326f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/support/integration/matchers/produce_output_when_run_matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def actual_output
8989

9090
def run_command
9191
CommandRunner.run(
92-
"rspec",
92+
"rspec --options /tmp/dummy-rspec-config",
9393
tempfile.to_s,
9494
env: { "DISABLE_PRY" => "true" },
9595
)

0 commit comments

Comments
 (0)