story-kit: merge 217_story_scaffold_generates_claude_md
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user