| ... | ... |
@@ -447,6 +447,15 @@ class FzyTest < Minitest::Test |
| 447 | 447 |
TTY |
| 448 | 448 |
end |
| 449 | 449 |
|
| 450 |
+ def test_show_info |
|
| 451 |
+ @tty = interactive_fzy(input: %w[foo bar baz], args: "-i") |
|
| 452 |
+ @tty.assert_matches ">\n[3/3]\nfoo\nbar\nbaz" |
|
| 453 |
+ @tty.send_keys("ba")
|
|
| 454 |
+ @tty.assert_matches "> ba\n[2/3]\nbar\nbaz" |
|
| 455 |
+ @tty.send_keys("q")
|
|
| 456 |
+ @tty.assert_matches "> baq\n[0/3]" |
|
| 457 |
+ end |
|
| 458 |
+ |
|
| 450 | 459 |
def test_help |
| 451 | 460 |
@tty = TTYtest.new_terminal(%{#{FZY_PATH} --help})
|
| 452 | 461 |
@tty.assert_matches <<TTY |