mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-03 15:40:27 +00:00
Add tests for __fisher_plugin_source.
This commit is contained in:
parent
778b5279c5
commit
c3abc207be
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 New Issue
Block a user