()
| 894 | |
| 895 | #[test] |
| 896 | fn test_init_creates_repository() { |
| 897 | let temp = TempDir::new().unwrap(); |
| 898 | let init = Init::at_path(temp.path()); |
| 899 | |
| 900 | let result = init.run(); |
| 901 | if let Err(ref e) = result { |
| 902 | eprintln!("Init failed: {:?}", e); |
| 903 | } |
| 904 | assert!(result.is_ok(), "Init should succeed: {:?}", result.err()); |
| 905 | |
| 906 | // Verify .atomic directory was created |
| 907 | assert!(temp.path().join(".atomic").is_dir()); |
| 908 | } |
| 909 | |
| 910 | #[test] |
| 911 | fn test_init_creates_directory_if_missing() { |