| ... | ... |
@@ -283,6 +283,11 @@ class FzyTest < Minitest::Test |
| 283 | 283 |
@tty.assert_matches "> asdf" |
| 284 | 284 |
end |
| 285 | 285 |
|
| 286 |
+ def test_non_interactive |
|
| 287 |
+ @tty = TTYtest.new_terminal(%{echo before; echo -n "foo\nbar" | #{FZY_PATH} -e foo; echo after})
|
|
| 288 |
+ @tty.assert_matches "before\nfoo\nafter" |
|
| 289 |
+ end |
|
| 290 |
+ |
|
| 286 | 291 |
def test_help |
| 287 | 292 |
@tty = TTYtest.new_terminal(%{#{FZY_PATH} --help})
|
| 288 | 293 |
@tty.assert_matches <<TTY |