()
| 1371 | |
| 1372 | #[test] |
| 1373 | fn test_intent_update() { |
| 1374 | let dir = tempdir().unwrap(); |
| 1375 | let repo = init_repo_with_vault(dir.path()); |
| 1376 | |
| 1377 | let result = repo.vault_intent_create(create_opts("Update me")).unwrap(); |
| 1378 | |
| 1379 | let updated = repo |
| 1380 | .vault_intent_update( |
| 1381 | &result.id, |
| 1382 | IntentUpdateOptions { |
| 1383 | status: Some("in-progress".to_string()), |
| 1384 | assignee: Some("bob".to_string()), |
| 1385 | ..Default::default() |
| 1386 | }, |
| 1387 | ) |
| 1388 | .unwrap(); |
| 1389 | |
| 1390 | assert_eq!(updated.status, "in-progress"); |
| 1391 | assert_eq!(updated.assignee, Some("bob".to_string())); |
| 1392 | |
| 1393 | // Manifest should reflect update |
| 1394 | let manifest = repo.vault_manifest().unwrap(); |
| 1395 | assert_eq!(manifest.intents[&result.id].status, "in-progress"); |
| 1396 | } |
| 1397 | |
| 1398 | #[test] |
| 1399 | fn test_intent_update_preserves_reason_and_lineage_metadata() { |
nothing calls this directly
no test coverage detected