diff options
author | aycabta <aycabta@gmail.com> | 2019-08-27 01:42:41 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-08-27 01:42:41 +0900 |
commit | 3a4a58e2ccf13be874cc81e9c663bd39e687acd3 (patch) | |
tree | d58289c5067e441f87914a8a0c4df4994903c0d1 /test/readline/helper.rb | |
parent | 344f507e4e7f74477f29a8f72d1042a468ce8a42 (diff) |
Fix use_lib_reline for test/readline
Diffstat (limited to 'test/readline/helper.rb')
-rw-r--r-- | test/readline/helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/readline/helper.rb b/test/readline/helper.rb index dbbe5a26c8..ee157722f1 100644 --- a/test/readline/helper.rb +++ b/test/readline/helper.rb @@ -11,7 +11,10 @@ def use_ext_readline # Use ext/readline as Readline end def use_lib_reline # Use lib/reline as Readline - Reline.send(:test_mode) + Reline.send(:remove_const, 'IOGate') if Reline.const_defined?('IOGate') + Reline.const_set('IOGate', Reline::GeneralIO) + Reline.send(:core).config.instance_variable_set(:@test_mode, true) + Reline.send(:core).config.reset Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline) Object.const_set(:Readline, Reline) end |