Skip to content

Commit 9e7c58d

Browse files
committed
- Revert change from =~ to match? to allow for nil if $TERM undefined.
[git-p4: depot-paths = "//src/minitest/dev/": change = 14281]
1 parent 393e334 commit 9e7c58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/minitest/pride_plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def self.plugin_pride_options opts, _options # :nodoc:
1010
def self.plugin_pride_init options # :nodoc:
1111
return unless PrideIO.pride?
1212

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy