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:
parent
4613c4bd5c
commit
32ed85f601
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -75,5 +75,9 @@ module TestIRB
|
|||
ensure
|
||||
$VERBOSE = verbose
|
||||
end
|
||||
|
||||
def test_default_config
|
||||
assert_equal(true, @context.use_colorize?)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue