[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
This commit is contained in:
parent
d6764076a1
commit
8f95e2abfe
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user