mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
25 lines
450 B
Bash
25 lines
450 B
Bash
#!/usr/bin/env bats
|
|
|
|
load test_helpers
|
|
|
|
setup() {
|
|
setup_asdf_dir
|
|
install_dummy_plugin
|
|
}
|
|
|
|
teardown() {
|
|
clean_asdf_dir
|
|
}
|
|
|
|
@test "latest_command shows latest stable version" {
|
|
run asdf latest dummy
|
|
[ "$(echo -e "2.0")" == "$output" ]
|
|
[ "$status" -eq 0 ]
|
|
}
|
|
|
|
@test "latest_command with version shows latest stable version that matches the given string" {
|
|
run asdf latest dummy 1
|
|
[ "$(echo -e "1.1")" == "$output" ]
|
|
[ "$status" -eq 0 ]
|
|
}
|