fix(test): use a home-relative path in the write-capability manifest test (#2036)

`/opt/tool` has no drive letter, so Windows rejects it as non-absolute before the API 1.3 gate the test checks. `~/tool` parses on every platform.

Co-authored-by: a-rookie-of-C-language <[email protected]>
Цей коміт міститься в:
arookieofcтаa-rookie-of-C-language authored and GitHub committed 2026-11-08 05:39:37 +08:00
1 джерело d5af4d1554
коміт 8a563bd185
1 file changed
+1 -1
+1 -1
Переглянути файл
@@ -590,7 +590,7 @@ mod tests {
#[test]
fn write_capabilities_need_api_1_3() {
for cap in ["project.write", "fs.write:/opt/tool"] {
for cap in ["project.write", "fs.write:~/tool"] {
let caps = format!("[capabilities]\noptional = [\"{cap}\"]\n");
assert!(err(&format!("{BASE}{caps}")).contains("new in plugin API 1.3"), "{cap}");
let m = Manifest::parse(&format!("{}{caps}", BASE.replace("^1.2", "^1.3"))).unwrap();