Skip to content

Commit

Permalink
Make colorize test pass with NO_COLOR env set (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Aug 28, 2024
1 parent 0e64136 commit 985ac50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/irb/test_input_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def test_initialization
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 }
Expand Down

0 comments on commit 985ac50

Please sign in to comment.