()
| 1016 | |
| 1017 | #[test] |
| 1018 | fn test_init_creates_repository() { |
| 1019 | let temp = TempDir::new().unwrap(); |
| 1020 | let init = Init::at_path(temp.path()); |
| 1021 | |
| 1022 | let result = init.run(); |
| 1023 | if let Err(ref e) = result { |
| 1024 | eprintln!("Init failed: {:?}", e); |
| 1025 | } |
| 1026 | assert!(result.is_ok(), "Init should succeed: {:?}", result.err()); |
| 1027 | |
| 1028 | // Verify .atomic directory was created |
| 1029 | assert!(temp.path().join(".atomic").is_dir()); |
| 1030 | } |
| 1031 | |
| 1032 | #[test] |
| 1033 | fn test_init_creates_directory_if_missing() { |