summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-07-01 01:13:15 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-07-01 01:13:15 +0900
commit07ef2b051ccdc6917b9b65d157df3ebc8f3ff0de (patch)
treef33e2d3cba9e96d18e6d45bada5580a5fd0be0a2 /test
parent3fc795340d7787d1c64bfe755965d86370ca687b (diff)
downloadfzf-07ef2b051ccdc6917b9b65d157df3ebc8f3ff0de.tar.gz
Print [ERROR] on info line when the default command failed
With zero result. Related: https://github.com/junegunn/fzf.vim/issues/22#issuecomment-311869805
Diffstat (limited to 'test')
-rw-r--r--test/test_go.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index e2265c37..f88d96f8 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -260,6 +260,12 @@ class TestGoFZF < TestBase
assert_equal 'hello', readonce.chomp
end
+ def test_fzf_default_command_failure
+ tmux.send_keys fzf.sub('FZF_DEFAULT_COMMAND=', 'FZF_DEFAULT_COMMAND=false'), :Enter
+ tmux.until { |lines| lines[-2].include?('ERROR') }
+ tmux.send_keys :Enter
+ end
+
def test_key_bindings
tmux.send_keys "#{FZF} -q 'foo bar foo-bar'", :Enter
tmux.until { |lines| lines.last =~ /^>/ }