mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +00:00
26 lines
513 B
Fish
26 lines
513 B
Fish
|
set -l path $DIRNAME/.t-$TESTNAME-(random)
|
||
|
|
||
|
function -S setup
|
||
|
mkdir -p $path/completions
|
||
|
echo "echo ok" > $path/completions/fisher.fish
|
||
|
|
||
|
set -g fisher_home $path
|
||
|
|
||
|
function complete
|
||
|
echo $argv
|
||
|
end
|
||
|
end
|
||
|
|
||
|
function -S teardown
|
||
|
rm -rf $path
|
||
|
functions -e complete
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Remove Fisherman completions"
|
||
|
(__fisher_complete_reset | sed -n 1p) = "-ec fisher"
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Evaluate completions/fisher.fish"
|
||
|
(__fisher_complete_reset | sed -n 2p) = "ok"
|
||
|
end
|