huskies: merge 517_story_remove_filesystem_shadow_fallback_paths_from_lifecycle_rs_finish_the_migration_to_crdt_only
This commit is contained in:
@@ -1172,8 +1172,11 @@ mod tests {
|
||||
setup_git_repo_in(tmp.path());
|
||||
let backlog_dir = tmp.path().join(".huskies/work/1_backlog");
|
||||
std::fs::create_dir_all(&backlog_dir).unwrap();
|
||||
let bug_file = backlog_dir.join("1_bug_crash.md");
|
||||
std::fs::write(&bug_file, "# Bug 1: Crash\n").unwrap();
|
||||
let bug_file = backlog_dir.join("9901_bug_crash.md");
|
||||
let content = "# Bug 9901: Crash\n";
|
||||
std::fs::write(&bug_file, content).unwrap();
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_content("9901_bug_crash", content);
|
||||
// Stage the file so it's tracked
|
||||
std::process::Command::new("git")
|
||||
.args(["add", "."])
|
||||
@@ -1187,13 +1190,11 @@ mod tests {
|
||||
.unwrap();
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
let result = tool_close_bug(&json!({"bug_id": "1_bug_crash"}), &ctx).unwrap();
|
||||
assert!(result.contains("1_bug_crash"));
|
||||
assert!(!bug_file.exists());
|
||||
let result = tool_close_bug(&json!({"bug_id": "9901_bug_crash"}), &ctx).unwrap();
|
||||
assert!(result.contains("9901_bug_crash"));
|
||||
assert!(
|
||||
tmp.path()
|
||||
.join(".huskies/work/5_done/1_bug_crash.md")
|
||||
.exists()
|
||||
crate::db::read_content("9901_bug_crash").is_some(),
|
||||
"content store should have the bug after close"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1537,11 +1538,14 @@ mod tests {
|
||||
// Create story file in current/ (no feature branch).
|
||||
let current_dir = tmp.path().join(".huskies/work/2_current");
|
||||
std::fs::create_dir_all(¤t_dir).unwrap();
|
||||
let content = "---\nname: No Branch\n---\n";
|
||||
std::fs::write(
|
||||
current_dir.join("51_story_no_branch.md"),
|
||||
"---\nname: No Branch\n---\n",
|
||||
content,
|
||||
)
|
||||
.unwrap();
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_content("51_story_no_branch", content);
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
let result = tool_accept_story(&json!({"story_id": "51_story_no_branch"}), &ctx);
|
||||
|
||||
Reference in New Issue
Block a user