diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-15 19:42:28 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-15 19:42:28 +0900 |
commit | e0036b5ad208f71d02447c233a621e67185b0fff (patch) | |
tree | 3f1e7a7b5e5d3d2b98a3adadc593e530484edd87 /test | |
parent | 208d4f2173c1630408b836312271b3c675ddc5eb (diff) |
Add --filepath-word option
Close #802
Diffstat (limited to 'test')
-rw-r--r-- | test/test_go.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index e41201f6..6a8e3bff 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -322,6 +322,19 @@ class TestGoFZF < TestBase tmux.until { |lines| lines.last !~ /^>/ } end + def test_file_word + tmux.send_keys "#{FZF} -q '--/foo bar/foo-bar/baz' --filepath-word", :Enter + tmux.until { |lines| lines.last =~ /^>/ } + + tmux.send_keys :Escape, :b + tmux.send_keys :Escape, :b + tmux.send_keys :Escape, :b + tmux.send_keys :Escape, :d + tmux.send_keys :Escape, :f + tmux.send_keys :Escape, :BSpace + tmux.until { |lines| lines.last == '> --///baz' } + end + def test_multi_order tmux.send_keys "seq 1 10 | #{fzf :multi}", :Enter tmux.until { |lines| lines.last =~ /^>/ } |