Only test windows path handling on windows.

Otherwise Path won't know what to do.
This commit is contained in:
Johan Sigfrids 2018-08-04 23:28:39 +03:00
parent 64ec7e1578
commit 9be5e640ff

View file

@ -398,6 +398,7 @@ mod tests {
#[test]
#[cfg(windows)]
fn windows_path_handling() {
let expected = (ChangeKind::Templates, PathBuf::from("/templates/hello.html"));
let pwd = Path::new(r#"C:\\Users\johan\site"#);