summaryrefslogtreecommitdiff
path: root/test/readline/helper.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-05-18 03:12:53 +0900
committeraycabta <aycabta@gmail.com>2019-05-18 12:48:27 +0900
commit16917cc3cb27277d04b9c35fb7fc10f72a9b6dfa (patch)
tree524745204c854b68070f9a22efb01adebc3aff4e /test/readline/helper.rb
parentb165bedcbd41d791a85fc1ce90b57a0d0525f319 (diff)
Add Reline.test_mode to use with special I/O
Diffstat (limited to 'test/readline/helper.rb')
-rw-r--r--test/readline/helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/readline/helper.rb b/test/readline/helper.rb
index 29b44996f1..dbbe5a26c8 100644
--- a/test/readline/helper.rb
+++ b/test/readline/helper.rb
@@ -11,6 +11,7 @@ def use_ext_readline # Use ext/readline as Readline
end
def use_lib_reline # Use lib/reline as Readline
+ Reline.send(:test_mode)
Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
Object.const_set(:Readline, Reline)
end