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