From 8f95e2abfe6c8da091b48bd32db45593e10f1647 Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Thu, 29 Aug 2024 03:07:37 +0900 Subject: [PATCH] [ruby/irb] Make colorize test pass with NO_COLOR env set (https://github.com/ruby/irb/pull/994) https://github.com/ruby/irb/commit/985ac509c1 --- test/irb/test_input_method.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/irb/test_input_method.rb b/test/irb/test_input_method.rb index 078631db8d..fdf3483416 100644 --- a/test/irb/test_input_method.rb +++ b/test/irb/test_input_method.rb @@ -35,6 +35,7 @@ module TestIRB end def test_colorize + IRB.conf[:USE_COLORIZE] = true original_colorable = IRB::Color.method(:colorable?) IRB::Color.instance_eval { undef :colorable? } IRB::Color.define_singleton_method(:colorable?) { true }