mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
25 lines
454 B
Bash
25 lines
454 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.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.0")" == "$output" ]
|
|
[ "$status" -eq 0 ]
|
|
}
|