Update invalid $TERM test case

This commit is contained in:
Junegunn Choi 2017-01-14 01:04:03 +09:00
parent d64828ce6d
commit 48863ac55c
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -1081,7 +1081,7 @@ class TestGoFZF < TestBase
end
def test_invalid_term
lines = `TERM=xxx #{FZF}`
lines = `TERM=xxx #{FZF} 2>&1`
assert_equal 2, $?.exitstatus
assert lines.include?('Invalid $TERM: xxx') || lines.include?('terminal entry not found')
end