diff --git a/spec/syntax_suggest/spec_helper.rb b/spec/syntax_suggest/spec_helper.rb index ab5d153a26..89bc9f4ab1 100644 --- a/spec/syntax_suggest/spec_helper.rb +++ b/spec/syntax_suggest/spec_helper.rb @@ -18,7 +18,7 @@ RSpec.configure do |config| end if config.color_mode == :automatic - if config.color_enabled? and (ENV["TERM"] == "dumb" or ENV["NO_COLOR"]&.slice(0)) + if config.color_enabled? && ((ENV["TERM"] == "dumb") || ENV["NO_COLOR"]&.slice(0)) config.color_mode = :off end end