asdf/test/plugin_list_all_command.sh
2017-08-25 11:29:23 +09:00

23 lines
353 B
Bash

#!/usr/bin/env bats
load test_helpers
. $(dirname $BATS_TEST_DIRNAME)/lib/commands/plugin-list-all.sh
setup() {
setup_asdf_dir
setup_repo
}
teardown() {
clean_asdf_dir
}
@test "plugin_list_all list all plugins in the repository" {
run plugin_list_all_command
local expected="bar
foo"
[ "$status" -eq 0 ]
[ "$output" = "$expected" ]
}