diff --git a/src/data_forms.rs b/src/data_forms.rs index 9905f4b..b5cd004 100644 --- a/src/data_forms.rs +++ b/src/data_forms.rs @@ -86,7 +86,7 @@ impl IntoElements for Field { } } -generate_attribute!(Subscription, "subscription", { +generate_attribute!(DataFormType, "type", { Cancel => "cancel", Form => "form", Result_ => "result", @@ -272,7 +272,7 @@ mod tests { Error::ParseError(string) => string, _ => panic!(), }; - assert_eq!(message, "Unknown data form type."); + assert_eq!(message, "Unknown value for 'type' attribute."); } #[test] diff --git a/src/ibb.rs b/src/ibb.rs index 5463caa..ad98737 100644 --- a/src/ibb.rs +++ b/src/ibb.rs @@ -181,6 +181,6 @@ mod tests { Error::ParseError(string) => string, _ => panic!(), }; - assert_eq!(message, "Invalid 'stanza' attribute."); + assert_eq!(message, "Unknown value for 'stanza' attribute."); } } diff --git a/src/jingle_ibb.rs b/src/jingle_ibb.rs index afbf11c..25dbaa3 100644 --- a/src/jingle_ibb.rs +++ b/src/jingle_ibb.rs @@ -107,6 +107,6 @@ mod tests { Error::ParseError(string) => string, _ => panic!(), }; - assert_eq!(message, "Invalid 'stanza' attribute."); + assert_eq!(message, "Unknown value for 'stanza' attribute."); } } diff --git a/src/message.rs b/src/message.rs index 79038c1..8025a2a 100644 --- a/src/message.rs +++ b/src/message.rs @@ -236,7 +236,7 @@ mod tests { #[test] fn test_serialise() { - let elem: Element = "".parse().unwrap(); + let elem: Element = "".parse().unwrap(); let message = Message { from: None, to: None,