asdf/test/plugin_list_all_command.bats
Victor Hugo Borja 9cac0ac50a Faster exec times. Load commands only when nedded.
When testing, use `run asdf` to actually test the command
as the user would invoke it, so that we might catch possible
errors on `bin/asdf`.
2019-01-20 02:13:20 -06:00

23 lines
422 B
Bash

#!/usr/bin/env bats
load test_helpers
setup() {
setup_asdf_dir
setup_repo
install_dummy_plugin
}
teardown() {
clean_asdf_dir
}
@test "plugin_list_all list all plugins in the repository" {
run asdf plugin-list-all
local expected="bar http://example.com/bar
dummy *http://example.com/dummy
foo http://example.com/foo"
[ "$status" -eq 0 ]
[ "$output" = "$expected" ]
}