aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb2
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)