diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-12-28 02:12:57 -0800 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-12-28 02:13:46 -0800 |
commit | db4020649af7d2d83aa4a159b8a221891b77bb89 (patch) | |
tree | 7d524199924214ee36e054e6a2fbb052d30f597d /test | |
parent | b16d93bd18b5a9752e3c08ab8dbd2bf0efb96879 (diff) |
Use correct path to fzy in integration test
Whoops. On my computer fzy is a symlink to the fzy built in the project
directory, so I didn't notice this.
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/integration_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/integration/integration_test.rb b/test/integration/integration_test.rb index 4147afb..de8537d 100644 --- a/test/integration/integration_test.rb +++ b/test/integration/integration_test.rb @@ -12,7 +12,7 @@ class FzyTest < Minitest::Test end def test_empty_list - @tty = TTYtest.driver.new_terminal(%{echo placeholder;echo -n "" | fzy}) + @tty = TTYtest.driver.new_terminal(%{echo placeholder;echo -n "" | #{FZY_PATH}}) @tty.assert_row(0, 'placeholder') @tty.assert_row(1, '>') @tty.assert_row(2, '') @@ -37,7 +37,7 @@ class FzyTest < Minitest::Test end def test_one_item - @tty = TTYtest.driver.new_terminal(%{echo placeholder;echo -n "test" | fzy}) + @tty = TTYtest.driver.new_terminal(%{echo placeholder;echo -n "test" | #{FZY_PATH}}) @tty.assert_row(0, 'placeholder') @tty.assert_row(1, '>') @tty.assert_row(2, 'test') @@ -65,7 +65,7 @@ class FzyTest < Minitest::Test end def test_two_items - @tty = TTYtest.driver.new_terminal(%{echo placeholder;echo -n "test\nfoo" | fzy}) + @tty = TTYtest.driver.new_terminal(%{echo placeholder;echo -n "test\nfoo" | #{FZY_PATH}}) @tty.assert_row(0, 'placeholder') @tty.assert_row(1, '>') @tty.assert_row(2, 'test') @@ -98,7 +98,7 @@ class FzyTest < Minitest::Test end def test_editing - @tty = TTYtest.driver.new_terminal(%{echo placeholder;echo -n "test\nfoo" | fzy}) + @tty = TTYtest.driver.new_terminal(%{echo placeholder;echo -n "test\nfoo" | #{FZY_PATH}}) @tty.assert_row(0, 'placeholder') @tty.assert_row(1, '>') @tty.assert_cursor_position(y: 1, x: 2) @@ -125,7 +125,7 @@ class FzyTest < Minitest::Test end def test_ctrl_d - @tty = TTYtest.driver.new_terminal(%{echo -n "foo\nbar" | fzy}) + @tty = TTYtest.driver.new_terminal(%{echo -n "foo\nbar" | #{FZY_PATH}}) @tty.assert_row(0, '>') @tty.send_keys('foo') @@ -139,7 +139,7 @@ class FzyTest < Minitest::Test end def test_ctrl_c - @tty = TTYtest.driver.new_terminal(%{echo -n "foo\nbar" | fzy}) + @tty = TTYtest.driver.new_terminal(%{echo -n "foo\nbar" | #{FZY_PATH}}) @tty.assert_row(0, '>') @tty.send_keys('foo') |