Add tests for __fisher_plugin_source.

This commit is contained in:
Jorge Bucaran 2016-02-04 14:05:01 +09:00
parent 778b5279c5
commit c3abc207be

14
test/plugin-source.fish Normal file
View File

@ -0,0 +1,14 @@
set -l path $DIRNAME/.t-$TESTNAME-(random)
function -S setup
mkdir $path
echo "echo ok" > $path/foo.fish
end
function -S teardown
rm -rf $path
end
test "$TESTNAME - Evaluate file in given path"
"ok" = (__fisher_plugin_source foo $path/foo.fish)
end