diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-02-11 20:21:10 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-02-11 20:26:31 +0900 |
commit | 6ea38b44384e7a09a3863465dc3cc7b93cd7e781 (patch) | |
tree | 38168bbc474e1defd9d177b9089c80aaba1cc330 /test/test_go.rb | |
parent | f7447aece12f9b95133b803d5c4f71815bee8ca6 (diff) |
Add become(...) action that replaces current fzf process
Close #3159
Diffstat (limited to 'test/test_go.rb')
-rwxr-xr-x | test/test_go.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 1816191d..bcc18dc4 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2643,6 +2643,13 @@ class TestGoFZF < TestBase tmux.send_keys :Space tmux.until { |lines| assert_includes lines, '/1/1/' } end + + def test_become + tmux.send_keys "seq 10 | #{FZF} --bind 'enter:become:seq 100 | #{FZF}'", :Enter + tmux.until { |lines| assert_equal 10, lines.item_count } + tmux.send_keys :Enter + tmux.until { |lines| assert_equal 100, lines.item_count } + end end module TestShell |