()
| 1633 | |
| 1634 | #[test] |
| 1635 | fn test_intent_update() { |
| 1636 | let dir = tempdir().unwrap(); |
| 1637 | let repo = init_repo_with_vault(dir.path()); |
| 1638 | |
| 1639 | let result = repo.vault_intent_create(create_opts("Update me")).unwrap(); |
| 1640 | |
| 1641 | let updated = repo |
| 1642 | .vault_intent_update( |
| 1643 | &result.id, |
| 1644 | IntentUpdateOptions { |
| 1645 | status: Some("in-progress".to_string()), |
| 1646 | assignee: Some("bob".to_string()), |
| 1647 | ..Default::default() |
| 1648 | }, |
| 1649 | ) |
| 1650 | .unwrap(); |
| 1651 | |
| 1652 | assert_eq!(updated.status, "in-progress"); |
| 1653 | assert_eq!(updated.assignee, Some("bob".to_string())); |
| 1654 | |
| 1655 | // Manifest should reflect update |
| 1656 | let manifest = repo.vault_manifest().unwrap(); |
| 1657 | assert_eq!(manifest.intents[&result.id].status, "in-progress"); |
| 1658 | } |
| 1659 | |
| 1660 | #[test] |
| 1661 | fn test_intent_update_preserves_reason_and_lineage_metadata() { |
nothing calls this directly
no test coverage detected