| 2367 | |
| 2368 | #[test] |
| 2369 | fn test_init_creates_nested_structure() { |
| 2370 | let temp_dir = TempDir::new().unwrap(); |
| 2371 | let nested_project = temp_dir.path().join("deep").join("nested").join("project"); |
| 2372 | fs::create_dir_all(&nested_project).unwrap(); |
| 2373 | |
| 2374 | init(&nested_project, false).unwrap(); |
| 2375 | |
| 2376 | let agents_dir = nested_project.join(".agents"); |
| 2377 | assert!(agents_dir.exists()); |
| 2378 | assert!(agents_dir.join("agentsync.toml").exists()); |
| 2379 | assert!(agents_dir.join("AGENTS.md").exists()); |
| 2380 | } |
| 2381 | |
| 2382 | // ========================================================================== |
| 2383 | // DEFAULT TEMPLATE TESTS |