summaryrefslogtreecommitdiff
path: root/test/acceptance/acceptance_test.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2018-06-18 11:18:50 -0700
committerGitHub <noreply@github.com>2018-06-18 11:18:50 -0700
commit98edd5f5c0a8e9469ca46a6c327798babd07e6ab (patch)
tree3b253182f9583ed946786ca4dcde7175935f77eb /test/acceptance/acceptance_test.rb
parent1b3306813c7afcb40cbe4da81e077151cae9ae91 (diff)
parent7ba0da7711b986b19945fecdb823c7b7239b87a7 (diff)
Merge pull request #85 from jhawthorn/fast_tty_init
Initialize tty before reading choices
Diffstat (limited to 'test/acceptance/acceptance_test.rb')
-rw-r--r--test/acceptance/acceptance_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb
index 4a11cac..cac4c26 100644
--- a/test/acceptance/acceptance_test.rb
+++ b/test/acceptance/acceptance_test.rb
@@ -320,6 +320,13 @@ class FzyTest < Minitest::Test
@tty.assert_matches "> foo\nfoo"
end
+ # https://github.com/jhawthorn/fzy/issues/81
+ def test_slow_stdin_fast_user
+ @tty = TTYtest.new_terminal(%{(echo aa; echo bc; echo bd; sleep 0.5) | #{FZY_PATH}})
+ @tty.send_keys("b\r")
+ @tty.assert_matches "bc"
+ end
+
def test_help
@tty = TTYtest.new_terminal(%{#{FZY_PATH} --help})
@tty.assert_matches <<TTY