From fc98772760c88afbcae56022444cbe973789743c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 3 Dec 2026 04:04:37 +0100 Subject: [PATCH] verbs tests: read the route id from the table view --- crates/ghostlight-dungeon/src/verbs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ghostlight-dungeon/src/verbs.rs b/crates/ghostlight-dungeon/src/verbs.rs index 87903cf..3a7583e 100644 --- a/crates/ghostlight-dungeon/src/verbs.rs +++ b/crates/ghostlight-dungeon/src/verbs.rs @@ -321,7 +321,7 @@ mod tests { (who(&now, "Korr"), who(&now, "Grix Sparkfinger"), who(&now, "Hilda Gatewright"), who(&now, "Brannoch Deepvein")); let quoted = format!("\"{DEED}\" ["); let deed = between(&view, "ed, "]").to_owned(); - let road = now.routes.iter().find(|route| route.label == "The Road").unwrap().id; + let road = between(&view, "The Road [", "]").to_owned(); assert!(!between(&view, &format!("\"{DEED}\" [{deed}]: "), "\n").contains("Hilda"), "the guard has not heard"); // The witness walks to the gate and tells the guard.