Change summary
src/data_forms.rs | 4 ++--
src/ibb.rs | 2 +-
src/jingle_ibb.rs | 2 +-
src/message.rs | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
Detailed changes
@@ -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]
@@ -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.");
}
}
@@ -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.");
}
}
@@ -236,7 +236,7 @@ mod tests {
#[test]
fn test_serialise() {
- let elem: Element = "<message xmlns='jabber:client' type='normal'/>".parse().unwrap();
+ let elem: Element = "<message xmlns='jabber:client'/>".parse().unwrap();
let message = Message {
from: None,
to: None,