diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2017-02-07 18:32:34 -0800 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2017-02-07 18:34:11 -0800 |
commit | eaf3b9df5bacbf9b7cb1c5657cc8567f5b9f4471 (patch) | |
tree | 1ba0e489df5c9e70edd262cc0ab4a04a018b93ef /test/acceptance | |
parent | 7fbd58b5513c17e92fa23ec764237f5cb4a48664 (diff) |
Add acceptance test for non-interactive mode
Diffstat (limited to 'test/acceptance')
-rw-r--r-- | test/acceptance/acceptance_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb index 9309d16..2f9d2ea 100644 --- 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 |