mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
cd4c3f9698
Co-authored-by: James Hegedus <jthegedus@hey.com>
33 lines
605 B
Bash
33 lines
605 B
Bash
#!/usr/bin/env bats
|
|
|
|
load test_helpers
|
|
|
|
setup() {
|
|
setup_asdf_dir
|
|
install_dummy_plugin
|
|
install_dummy_legacy_plugin
|
|
run asdf install dummy 1.0
|
|
run asdf install dummy 1.1
|
|
|
|
PROJECT_DIR="$HOME/project"
|
|
mkdir -p "$PROJECT_DIR"
|
|
}
|
|
|
|
teardown() {
|
|
clean_asdf_dir
|
|
}
|
|
|
|
@test "info should show os, shell and asdf debug information" {
|
|
cd "$PROJECT_DIR"
|
|
|
|
run asdf info
|
|
|
|
[ "$status" -eq 0 ]
|
|
[[ $output == *$'OS:\n'* ]]
|
|
[[ $output == *$'SHELL:\n'* ]]
|
|
[[ $output == *$'ASDF VERSION:\n'* ]]
|
|
[[ $output == *$'ASDF ENVIRONMENT VARIABLES:\n'* ]]
|
|
[[ $output == *$'ASDF INSTALLED PLUGINS:\n'* ]]
|
|
|
|
}
|