Disable color mode of test-syntax-suggest when on dumb terminal
The compliation-mode of Emacs sets TERM to "dumb" and does not support coloring.
This commit is contained in:
parent
e1bd45624c
commit
611a64250a
@ -16,6 +16,12 @@ RSpec.configure do |config|
|
||||
config.expect_with :rspec do |c|
|
||||
c.syntax = :expect
|
||||
end
|
||||
|
||||
if config.color_mode == :automatic
|
||||
if color_enabled? and (ENV["TERM"] == "dumb" or ENV["NO_COLOR"]&.slice(0))
|
||||
config.color_mode = :off
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Used for debugging modifications to
|
||||
|
Loading…
x
Reference in New Issue
Block a user