1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Copy config to make IRB::Context#use_colorize? functional

on initialize

This fixes https://github.com/ruby/ruby/pull/2188
This commit is contained in:
Takashi Kokubun 2019-05-21 04:32:15 -07:00
parent 4613c4bd5c
commit 32ed85f601
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
2 changed files with 5 additions and 0 deletions

View file

@ -40,6 +40,7 @@ module IRB
@load_modules = IRB.conf[:LOAD_MODULES]
@use_readline = IRB.conf[:USE_READLINE]
@use_colorize = IRB.conf[:USE_COLORIZE]
@verbose = IRB.conf[:VERBOSE]
@io = nil

View file

@ -75,5 +75,9 @@ module TestIRB
ensure
$VERBOSE = verbose
end
def test_default_config
assert_equal(true, @context.use_colorize?)
end
end
end