mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Add tests for __fisher_plugin_source.
This commit is contained in:
parent
778b5279c5
commit
c3abc207be
1 changed files with 14 additions and 0 deletions
14
test/plugin-source.fish
Normal file
14
test/plugin-source.fish
Normal 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
|
Loading…
Reference in a new issue