| 1082 | |
| 1083 | #[test] |
| 1084 | fn test_init_path_with_spaces() { |
| 1085 | let temp = TempDir::new().unwrap(); |
| 1086 | let path_with_spaces = temp.path().join("my project"); |
| 1087 | std::fs::create_dir(&path_with_spaces).unwrap(); |
| 1088 | |
| 1089 | let init = Init::at_path(&path_with_spaces); |
| 1090 | let result = init.run(); |
| 1091 | if let Err(ref e) = result { |
| 1092 | eprintln!("Init path with spaces failed: {:?}", e); |
| 1093 | } |
| 1094 | assert!(result.is_ok(), "Init should succeed: {:?}", result.err()); |
| 1095 | } |
| 1096 | |
| 1097 | #[test] |
| 1098 | fn test_default_view_name_constant() { |