diff --git a/src/dav/encoder.rs b/src/dav/encoder.rs index a16f498..9e907dc 100644 --- a/src/dav/encoder.rs +++ b/src/dav/encoder.rs @@ -959,4 +959,26 @@ mod tests { assert_eq!(&got, expected, "\n---GOT---\n{got}\n---EXP---\n{expected}\n"); } + + + #[tokio::test] + async fn rfc_allprop_include() { + let got = serialize( + NoExtension { root: true }, + &PropFind::AllProp(Some(Include(vec![ + PropertyRequest::DisplayName, + PropertyRequest::ResourceType, + ]))), + ).await; + + let expected = r#" + + + + + +"#; + + assert_eq!(&got, expected, "\n---GOT---\n{got}\n---EXP---\n{expected}\n"); + } }