diff options
author | aycabta <aycabta@gmail.com> | 2019-06-02 07:39:12 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-06-02 07:39:12 +0900 |
commit | e360688c4df08c2a43daa00c1de9832a20ad1521 (patch) | |
tree | d745b827c489ab2080a192951388a73891b0259f /lib/reline.rb | |
parent | 28e01f006d124fa8d6d85450f92b188b473921f8 (diff) |
Add new test for Reline within pipe
Diffstat (limited to 'lib/reline.rb')
-rw-r--r-- | lib/reline.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/reline.rb b/lib/reline.rb index 437cf45b57..2b21968371 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -220,6 +220,8 @@ module Reline private_class_method def self.test_mode remove_const('IOGate') if const_defined?('IOGate') const_set('IOGate', Reline::GeneralIO) + @@config.instance_variable_set(:@test_mode, true) + @@config.reset end def self.input=(val) |