aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-05-21 04:32:15 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2019-05-21 04:32:17 -0700
commit32ed85f601d2102990b62102c5f3b322306b1928 (patch)
tree904fd9d14c9240c6962140ea0bc62d1af02eb272 /test
parent4613c4bd5c22acb675ec385f4e0fa27ec7ad59ab (diff)
downloadruby-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')
-rw-r--r--test/irb/test_context.rb4
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