asdf/test/plugin_list_all_command.bats

24 lines
463 B
Plaintext
Raw Normal View History

2017-08-24 19:29:23 -07:00
#!/usr/bin/env bats
load test_helpers
setup() {
setup_asdf_dir
setup_repo
install_dummy_plugin
2017-08-24 19:29:23 -07:00
}
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"
2017-08-24 19:29:23 -07:00
[ "$status" -eq 0 ]
[ "$output" = "$expected" ]
}