From 32ed85f601d2102990b62102c5f3b322306b1928 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 21 May 2019 04:32:15 -0700 Subject: Copy config to make IRB::Context#use_colorize? functional on initialize This fixes https://github.com/ruby/ruby/pull/2188 --- test/irb/test_context.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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 -- cgit v1.2.3