diff --git a/lib/super_diff/rspec/monkey_patches.rb b/lib/super_diff/rspec/monkey_patches.rb index c950a81c..6a8a7c72 100644 --- a/lib/super_diff/rspec/monkey_patches.rb +++ b/lib/super_diff/rspec/monkey_patches.rb @@ -72,7 +72,7 @@ def console_code_for(code_or_symbol) # Patch so it does not apply a color if code_or_symbol is nil def wrap(text, code_or_symbol) - if RSpec.configuration.color_enabled? && code = console_code_for(code_or_symbol) + if SuperDiff.configuration.color_enabled? && code = console_code_for(code_or_symbol) "\e[#{code}m#{text}\e[0m" else text diff --git a/support/test_plan.rb b/support/test_plan.rb index f0134314..302d7f21 100644 --- a/support/test_plan.rb +++ b/support/test_plan.rb @@ -156,10 +156,6 @@ def run_test_with_libraries(*libraries) option_parser.parse! end - RSpec.configure do |config| - config.color_mode = color_enabled? ? :on : :off - end - SuperDiff.configuration.merge!( configuration.merge(color_enabled: color_enabled?) )