| 2286 | |
| 2287 | #[test] |
| 2288 | fn test_init_creates_agents_md() { |
| 2289 | let temp_dir = TempDir::new().unwrap(); |
| 2290 | |
| 2291 | init(temp_dir.path(), false).unwrap(); |
| 2292 | |
| 2293 | let agents_md_path = temp_dir.path().join(".agents").join("AGENTS.md"); |
| 2294 | assert!(agents_md_path.exists()); |
| 2295 | |
| 2296 | let content = fs::read_to_string(&agents_md_path).unwrap(); |
| 2297 | assert!(content.contains("# AI Agent Instructions")); |
| 2298 | assert!(content.contains("## Project Overview")); |
| 2299 | } |
| 2300 | |
| 2301 | #[test] |
| 2302 | fn test_init_does_not_overwrite_without_force() { |