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.
fisher/test/index-update.fish

25 lines
458 B
Fish

set -l path $DIRNAME/.t-$TESTNAME-(random)
function -S setup
set -g fisher_cache $path/cache
set -g fisher_index file://$path/fake-index
mkdir -p $fisher_cache
seq 5 > $path/fake-index
__fisher_index_update
end
function -S teardown
rm -rf $path
end
test "$TESTNAME - Update index via curl method"
(seq 5) = (cat $fisher_cache/.index)
end
test "$TESTNAME - Remove .tmp swap index file"
! -e $fisher_cache/.index.tmp
end