fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit 09ea39b180c5f7fbd47e77a5014fd3d48f88ae1e
parent ae6c9f3958910a30db9eee7963d41713649917a4
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Thu, 29 Dec 2016 02:27:18 -0800

Upgrade to ttytest 0.3.0

Diffstat:
Mtest/integration/Gemfile.lock | 2+-
Mtest/integration/integration_test.rb | 12++++++------
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/test/integration/Gemfile.lock b/test/integration/Gemfile.lock @@ -2,7 +2,7 @@ GEM remote: https://rubygems.org/ specs: minitest (5.10.1) - ttytest (0.2.0) + ttytest (0.3.0) PLATFORMS ruby diff --git 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_PATH}}) + @tty = TTYtest.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_PATH}}) + @tty = TTYtest.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_PATH}}) + @tty = TTYtest.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_PATH}}) + @tty = TTYtest.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_PATH}}) + @tty = TTYtest.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_PATH}}) + @tty = TTYtest.new_terminal(%{echo -n "foo\nbar" | #{FZY_PATH}}) @tty.assert_row(0, '>') @tty.send_keys('foo')