summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-07-28 14:35:46 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-07-28 14:35:46 +0900
commit02bd2d2adf73feddd57bdac6c5fbaee56edaf53e (patch)
tree6a745d29663b0d49bf791706169375065ab3d967 /test
parentdce6fe6f2ddacf0cef675342d71b6c740fdbc6b2 (diff)
Do not proceed if $TERM is invalid
Related #305
Diffstat (limited to 'test')
-rw-r--r--test/test_go.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index f702efcb..75fc01ca 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -743,6 +743,11 @@ class TestGoFZF < TestBase
tmux.send_keys :Enter
end
+ def test_invalid_term
+ tmux.send_keys "TERM=xxx fzf", :Enter
+ tmux.until { |lines| lines.any? { |l| l.include? 'Invalid $TERM: xxx' } }
+ end
+
private
def writelines path, lines
File.unlink path while File.exists? path