diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-03-04 13:13:11 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-03-04 13:13:11 +0900 |
commit | 55828f389abed5721d025786b399854e78607e3b (patch) | |
tree | 30528def9e7e8d55149bf4e72711376ba0a3348c | |
parent | 7e2c18a1f63583fdc6086d707a785e7c53a34290 (diff) |
-rw-r--r-- | test/test_go.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 680edd67..524e436a 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -509,7 +509,7 @@ class TestBash < TestBase end def test_dir_completion - tmux.send_keys 'mkdir -p /tmp/fzf-test/d{1..100}', :Enter + tmux.send_keys 'mkdir -p /tmp/fzf-test/d{1..100}; touch /tmp/fzf-test/d55/xxx', :Enter tmux.prepare tmux.send_keys 'cd /tmp/fzf-test/**', :Tab tmux.until { |lines| lines[-1].start_with? '>' } @@ -520,6 +520,16 @@ class TestBash < TestBase tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/' } tmux.send_keys :xx tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/xx' } + + # Should not match regular files + tmux.send_keys :Tab + tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/xx' } + + # Fail back to plusdirs + tmux.send_keys :BSpace, :BSpace, :BSpace + tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55' } + tmux.send_keys :Tab + tmux.until { |lines| lines[-1] == 'cd /tmp/fzf-test/d55/' } end def test_process_completion |