diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-05-21 04:32:15 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-05-21 04:32:17 -0700 |
commit | 32ed85f601d2102990b62102c5f3b322306b1928 (patch) | |
tree | 904fd9d14c9240c6962140ea0bc62d1af02eb272 /test/irb | |
parent | 4613c4bd5c22acb675ec385f4e0fa27ec7ad59ab (diff) | |
download | ruby-32ed85f601d2102990b62102c5f3b322306b1928.tar.gz |
Copy config to make IRB::Context#use_colorize? functional
on initialize
This fixes https://github.com/ruby/ruby/pull/2188
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_context.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index 469599c11b..96e6fbfc61 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -75,5 +75,9 @@ module TestIRB ensure $VERBOSE = verbose end + + def test_default_config + assert_equal(true, @context.use_colorize?) + end end end |