Skip to content

Commit

Permalink
Add acceptance test for non-interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Feb 8, 2017
1 parent 7fbd58b commit eaf3b9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/acceptance/acceptance_test.rb
Expand Up @@ -283,6 +283,11 @@ def test_initial_query
@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
Expand Down

0 comments on commit eaf3b9d

Please sign in to comment.