mirror of https://github.com/jorgebucaran/fisher
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
686 B
Fish
31 lines
686 B
Fish
set -l gist_plugin norf
|
|
|
|
function -S setup
|
|
source $DIRNAME/helpers/git-ls-remote.fish
|
|
end
|
|
|
|
function -S teardown
|
|
functions -e git
|
|
end
|
|
|
|
for plugin in foo bar baz
|
|
test "$TESTNAME - Get URL from repo's path in the cache ($plugin)"
|
|
"https://github.com/$plugin/$plugin" = (
|
|
__fisher_url_from_path ...cache/$plugin
|
|
)
|
|
end
|
|
end
|
|
|
|
test "$TESTNAME - Get <plugin>@<URL> for URLs of GitHub gists"
|
|
"$gist_plugin@https://gist.github.com/$gist_plugin" = (
|
|
__fisher_url_from_path ...cache/$gist_plugin
|
|
)
|
|
end
|
|
|
|
test "$TESTNAME - Fail if path is not given"
|
|
1 -eq (
|
|
__fisher_url_from_path ""
|
|
printf $status
|
|
)
|
|
end
|