test: remove duplicated resource content assertions

This commit is contained in:
2026-08-18 02:20:32 +09:00
parent 99170d47ab
commit 46767daf49
11 changed files with 101 additions and 683 deletions
-26
View File
@@ -67,30 +67,4 @@ mod tests {
assert_eq!(selected.revision, source.revision);
}
}
#[test]
fn coder_review_preserves_branch_policy_and_hands_approval_to_orchestrator() {
let source =
builtin_flow_source(CODER_REVIEW_FLOW_SLUG).expect("coder-review Flow must exist");
for required in [
"detached HEAD",
"work/<ticket-id>-<slug>",
"explicitly authorized",
"git add",
"git commit",
"Workdir is clean",
"current head commit",
"same Ticket work branch",
"new revision",
] {
assert!(
source.content.contains(required),
"coder-review Flow must preserve branch/commit policy token {required:?}"
);
}
assert!(source.content.contains("hand off to the Orchestrator"));
assert!(source.content.contains("Do not call MergeRequestComplete"));
assert!(!source.content.contains("Call MergeRequestComplete with"));
}
}