Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Commit c2999a5

Browse files
committed
test: Correcting failing test
1 parent 6c95b73 commit c2999a5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/cli.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,20 @@ fn test_commit_command() {
2121
std::env::set_current_dir(&repo_path).unwrap();
2222

2323
// Create a file to commit
24-
std::fs::write(repo_path.join("BUTTON.md"), "This is a new button ■").unwrap();
24+
std::fs::write(repo_path.join(".dod.yml"), r#"
25+
issue_reference_required: false
26+
checklist:
27+
- "Code is clean, readable, and adheres to team coding standards."
28+
- "All relevant automated tests (unit, integration) pass successfully."
29+
- "New features or bug fixes are covered by appropriate new tests."
30+
- "Security implications of this change have been considered."
31+
- "Relevant documentation (code comments, READMEs, etc.) is updated."
32+
"#).unwrap();
33+
2534
// Stage the file
2635
Command::new("git")
2736
.arg("add")
28-
.arg("BUTTON.md")
37+
.arg(".dod.yml")
2938
.current_dir(&repo_path)
3039
.output()
3140
.unwrap();

0 commit comments

Comments
 (0)