2018-10-19 19:44:26 -07:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
load test_helpers
|
|
|
|
|
|
|
|
setup() {
|
|
|
|
setup_asdf_dir
|
|
|
|
}
|
|
|
|
|
|
|
|
teardown() {
|
|
|
|
clean_asdf_dir
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "plugin_test_command with no URL specified prints an error" {
|
2019-01-20 01:13:20 -07:00
|
|
|
run asdf plugin-test "elixir"
|
2018-10-19 19:44:26 -07:00
|
|
|
[ "$status" -eq 1 ]
|
|
|
|
[ "$output" = "FAILED: please provide a plugin name and url" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "plugin_test_command with no name or URL specified prints an error" {
|
2019-01-20 01:13:20 -07:00
|
|
|
run asdf plugin-test
|
2018-10-19 19:44:26 -07:00
|
|
|
[ "$status" -eq 1 ]
|
|
|
|
[ "$output" = "FAILED: please provide a plugin name and url" ]
|
|
|
|
}
|