summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Martinek <omartine@akamai.com>2019-04-05 11:32:19 +0000
committerJohn Hawthorn <john@hawthorn.email>2019-12-27 23:17:18 -0800
commit8505df59ffd9b578f98591520b51abc818509fc3 (patch)
treefbfd61fb82d8212284f5d5a0319ff3a8ec2b82d1
parentcdafcf05b3a0707f99414dad8cac69d8f87d82f0 (diff)
add test_show_info acceptance test
-rw-r--r--test/acceptance/acceptance_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb
index 1370ac8..13af803 100644
--- a/test/acceptance/acceptance_test.rb
+++ b/test/acceptance/acceptance_test.rb
@@ -447,6 +447,15 @@ class FzyTest < Minitest::Test
TTY
end
+ def test_show_info
+ @tty = interactive_fzy(input: %w[foo bar baz], args: "-i")
+ @tty.assert_matches ">\n[3/3]\nfoo\nbar\nbaz"
+ @tty.send_keys("ba")
+ @tty.assert_matches "> ba\n[2/3]\nbar\nbaz"
+ @tty.send_keys("q")
+ @tty.assert_matches "> baq\n[0/3]"
+ end
+
def test_help
@tty = TTYtest.new_terminal(%{#{FZY_PATH} --help})
@tty.assert_matches <<TTY