aboutsummaryrefslogtreecommitdiffstats
path: root/test/reline/helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/reline/helper.rb')
-rw-r--r--test/reline/helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/reline/helper.rb b/test/reline/helper.rb
index b1759f1d80..0b5b8af310 100644
--- a/test/reline/helper.rb
+++ b/test/reline/helper.rb
@@ -44,6 +44,10 @@ class Reline::TestCase < Test::Unit::TestCase
retry
end
+ def input_key_by_symbol(input)
+ @line_editor.input_key(Reline::Key.new(input, input, false))
+ end
+
def input_keys(input, convert = true)
input = convert_str(input) if convert
input.chars.each do |c|