mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
23 lines
460 B
Fish
23 lines
460 B
Fish
|
set -g gist $DIRNAME/fixtures/gist
|
||
|
|
||
|
function -S setup
|
||
|
function -S curl -a flags url
|
||
|
cat $gist/(basename $url).json
|
||
|
end
|
||
|
end
|
||
|
|
||
|
function -S teardown
|
||
|
functions -e curl
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Fail if URL is an empty string"
|
||
|
1 -eq (
|
||
|
__fisher_gist_to_name ""
|
||
|
printf $status
|
||
|
)
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Retrieve the name of the first *.fish file in the JSON stream"
|
||
|
foo = (__fisher_gist_to_name gist.github.com/foo)
|
||
|
end
|