fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit eb666be5bdf2a67d04e084b72d8d50e9164b0edf parent cd79e59deab2d98b527c8d51bae929f0572e2ecb Author: John Hawthorn <john.hawthorn@gmail.com> Date: Tue, 7 Feb 2017 18:32:34 -0800 Add acceptance test for non-interactive mode Diffstat:
| M | test/acceptance/acceptance_test.rb | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb @@ -283,6 +283,11 @@ class FzyTest < Minitest::Test @tty.assert_matches "> asdf" end + def test_non_interactive + @tty = TTYtest.new_terminal(%{echo before; echo -n "foo\nbar" | #{FZY_PATH} -e foo; echo after}) + @tty.assert_matches "before\nfoo\nafter" + end + def test_help @tty = TTYtest.new_terminal(%{#{FZY_PATH} --help}) @tty.assert_matches <<TTY