story-kit: merge 217_story_scaffold_generates_claude_md

This commit is contained in:
Dave
2026-02-26 18:29:32 +00:00
parent 0135d74bbc
commit 733b92337e
2 changed files with 87 additions and 1 deletions

View File

@@ -254,6 +254,43 @@ mod tests {
assert!(!status.needs_project_toml);
}
// ── CLAUDE.md is not an onboarding step ──────────────────────
#[test]
fn onboarding_status_does_not_check_claude_md() {
let dir = TempDir::new().unwrap();
let root = setup_project(&dir);
// Write real content for the required onboarding files
fs::write(
root.join(".story_kit/specs/00_CONTEXT.md"),
"# My Project\n\nReal project context.",
)
.unwrap();
fs::write(
root.join(".story_kit/specs/tech/STACK.md"),
"# My Stack\n\nReal stack content.",
)
.unwrap();
// CLAUDE.md is absent — should NOT affect onboarding result
assert!(!root.join("CLAUDE.md").exists());
let status = check_onboarding_status(&root);
assert!(
!status.needs_context,
"needs_context should be false with real content"
);
assert!(
!status.needs_stack,
"needs_stack should be false with real content"
);
assert!(
!status.needs_onboarding(),
"needs_onboarding() should be false regardless of CLAUDE.md presence"
);
}
// ── partial onboarding ────────────────────────────────────────
#[test]