mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
24 lines
397 B
Bash
24 lines
397 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" ]
|
|
}
|