Do not proceed if $TERM is invalid

Related #305
This commit is contained in:
Junegunn Choi committed 2015-07-28 14:35:46 +09:00
1 parent dce6fe6f2d
commit 02bd2d2adf
2 files changed
+10

No files matched your search

+5
View File
@@ -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