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