mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Add a test for #224
Allow spaces in .tool_versions file path See #202, #224
This commit is contained in:
parent
77622242ee
commit
e75cc3a7a2
@ -68,6 +68,16 @@ teardown() {
|
||||
[ "$output" == "0.1.0" ]
|
||||
}
|
||||
|
||||
@test "parse_asdf_version_file should output path on project with spaces" {
|
||||
PROJECT_DIR="$PROJECT_DIR/outer space"
|
||||
mkdir -p "$PROJECT_DIR"
|
||||
cd $outer
|
||||
echo "dummy 0.1.0" > "$PROJECT_DIR/.tool-versions"
|
||||
run parse_asdf_version_file "$PROJECT_DIR/.tool-versions" dummy
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" == "0.1.0" ]
|
||||
}
|
||||
|
||||
@test "parse_asdf_version_file should output path version with spaces" {
|
||||
echo "dummy path:/some/dummy path" > $PROJECT_DIR/.tool-versions
|
||||
run parse_asdf_version_file $PROJECT_DIR/.tool-versions dummy
|
||||
|
Loading…
Reference in New Issue
Block a user