Add a test for #224

Allow spaces in .tool_versions file path
See #202, #224
This commit is contained in:
Victor Borja 2017-09-03 19:53:01 -05:00
parent 77622242ee
commit e75cc3a7a2

View File

@ -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