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