diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-07-28 14:35:46 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-07-28 14:35:46 +0900 |
commit | 02bd2d2adf73feddd57bdac6c5fbaee56edaf53e (patch) | |
tree | 6a745d29663b0d49bf791706169375065ab3d967 /test | |
parent | dce6fe6f2ddacf0cef675342d71b6c740fdbc6b2 (diff) |
Do not proceed if $TERM is invalid
Related #305
Diffstat (limited to 'test')
-rw-r--r-- | test/test_go.rb | 5 |
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 |