test(store): the last two root answers compared as the system spells them (macOS)
check / check (push) Waiting to run
portable-macos / portable (macos-latest) (push) Waiting to run
portable-windows / portable (windows-latest) (push) Waiting to run
two-user / two-user (push) Waiting to run

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
This commit is contained in:
swaitsandClaude Fable 5.1 committed 2026-10-30 03:14:59 -06:00
1 parent 8f0e5f0841
commit ad2ac82491
1 file changed
+5 -2
+5 -2
View File
@@ -236,12 +236,15 @@ fn setup_records_a_root_chosen_elsewhere_and_forgets_it_when_back_to_default() {
assert!(report.recorded);
assert_eq!(
Root::find_in(fresh.path(), None).unwrap().path(),
xdg.join("wanderbooks")
std::fs::canonicalize(&xdg).unwrap().join("wanderbooks")
);
// A relative XDG_DATA_HOME is ignored, as the spec says.
let other = tmp("setup-rel");
let (root, report) = Root::setup(other.path(), None, Some(Path::new("rel"))).unwrap();
assert_eq!(root.path(), default_root(other.path()));
assert_eq!(
root.path(),
default_root(&std::fs::canonicalize(other.path()).unwrap())
);
assert!(!report.recorded);
}