From 07ef2b051ccdc6917b9b65d157df3ebc8f3ff0de Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 1 Jul 2017 01:13:15 +0900 Subject: Print [ERROR] on info line when the default command failed With zero result. Related: https://github.com/junegunn/fzf.vim/issues/22#issuecomment-311869805 --- test/test_go.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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 =~ /^>/ } -- cgit v1.2.3