Add tests for __fisher_plugin_source.

This commit is contained in:
Jorge Bucaran 2016-02-04 14:05:01 +09:00
parent adda0f84fd
commit 139efca697
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

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