fix: update should_commit_stage test to match 5_done in COMMIT_WORTHY_STAGES
The test was asserting 5_done should NOT trigger commits, but commit 74dc42c
added 5_done to COMMIT_WORTHY_STAGES. Updated test to match.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -938,12 +938,12 @@ mod tests {
|
|||||||
fn should_commit_stage_only_for_terminal_stages() {
|
fn should_commit_stage_only_for_terminal_stages() {
|
||||||
// Terminal stages — should commit.
|
// Terminal stages — should commit.
|
||||||
assert!(should_commit_stage("1_upcoming"));
|
assert!(should_commit_stage("1_upcoming"));
|
||||||
|
assert!(should_commit_stage("5_done"));
|
||||||
assert!(should_commit_stage("6_archived"));
|
assert!(should_commit_stage("6_archived"));
|
||||||
// Intermediate stages — broadcast-only, no commit.
|
// Intermediate stages — broadcast-only, no commit.
|
||||||
assert!(!should_commit_stage("2_current"));
|
assert!(!should_commit_stage("2_current"));
|
||||||
assert!(!should_commit_stage("3_qa"));
|
assert!(!should_commit_stage("3_qa"));
|
||||||
assert!(!should_commit_stage("4_merge"));
|
assert!(!should_commit_stage("4_merge"));
|
||||||
assert!(!should_commit_stage("5_done"));
|
|
||||||
// Unknown — no commit.
|
// Unknown — no commit.
|
||||||
assert!(!should_commit_stage("unknown"));
|
assert!(!should_commit_stage("unknown"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user