Stub out zsh's vared in tests
This commit is contained in:
@@ -240,7 +240,10 @@ test_git_commit_prompt() {
|
|||||||
touch a b c d
|
touch a b c d
|
||||||
git add . > /dev/null
|
git add . > /dev/null
|
||||||
|
|
||||||
# Lightly test the git commit prompt, by piping a commit message
|
# Zsh 'vared' doesn't handle input via pipe, so replace with function that reads into commit_msg variable.
|
||||||
|
function vared(){ read commit_msg; }
|
||||||
|
|
||||||
|
# Test the git commit prompt, by piping a commit message
|
||||||
# instead of user input.
|
# instead of user input.
|
||||||
echo "$commit_msg" | git_commit_prompt > /dev/null
|
echo "$commit_msg" | git_commit_prompt > /dev/null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user