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