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

[ruby/reline] Disable autocompletion in tests

https://github.com/ruby/reline/commit/9b1913567a
This commit is contained in:
aycabta 2021-08-30 01:40:19 +09:00
parent 3a2e2a6848
commit 24a26db795

View file

@ -5,6 +5,7 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase
Reline.send(:test_mode)
@prompt = '> '
@config = Reline::Config.new # Emacs mode is default
@config.autocompletion = false
Reline::HISTORY.instance_variable_set(:@config, @config)
Reline::HISTORY.clear
@encoding = Reline::IOGate.encoding