Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 4ac3b66

Browse files
committed
Make diff coloring work properly in integration specs.
1 parent ae69d80 commit 4ac3b66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/support/aruba_support.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ module ArubaLoader
1313
attr_reader :last_cmd_stdout, :last_cmd_stderr
1414

1515
def run_command(cmd)
16+
RSpec.configuration.color = true
17+
1618
temp_stdout = StringIO.new
1719
temp_stderr = StringIO.new
1820
RSpec::Core::Metadata.instance_variable_set(:@relative_path_regex, nil)
@@ -23,6 +25,7 @@ def run_command(cmd)
2325
end
2426
ensure
2527
RSpec.reset
28+
RSpec.configuration.color = true
2629
RSpec::Core::Metadata.instance_variable_set(:@relative_path_regex, nil)
2730

2831
# Ensure it gets cached with a proper value -- if we leave it set to nil,

0 commit comments

Comments
 (0)