Skip to content

Commit

Permalink
- minitest/pride: Fixed to use true colors with *-direct terminals (b…
Browse files Browse the repository at this point in the history
…k2204)

[git-p4: depot-paths = "//src/minitest/dev/": change = 14352]
  • Loading branch information
zenspider committed Nov 23, 2024
1 parent d1b5451 commit 212de90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minitest/pride_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.plugin_pride_options opts, _options # :nodoc:
def self.plugin_pride_init options # :nodoc:
return unless PrideIO.pride?

klass = ENV["TERM"] =~ /^xterm|-256color$/ ? PrideLOL : PrideIO
klass = ENV["TERM"] =~ /^xterm|-(?:256color|direct)$/ ? PrideLOL : PrideIO
io = klass.new options[:io]

self.reporter.reporters.grep(Minitest::Reporter).each do |rep|
Expand Down

0 comments on commit 212de90

Please sign in to comment.