зеркало из https://github.com/github/ruby.git
[ruby/syntax_suggest] standardrb --fix-unsafely spec/spec_helper.rb
https://github.com/ruby/syntax_suggest/commit/6e266b3b2b
This commit is contained in:
Родитель
9ccf0a066d
Коммит
f77dc6fb16
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче