diff -r 1b3e848b4394 -r a1e7ad9336db spec/stanzacmp_spec.lua --- a/spec/stanzacmp_spec.lua Tue Jul 10 11:09:56 2018 +0100 +++ b/spec/stanzacmp_spec.lua Tue Jul 10 11:14:34 2018 +0100 @@ -61,4 +61,35 @@ s1:tag("c", { n = "1" }); no(s1, s2); end); + it("should allow matching any attribute value with {scansion:any}", function () + --[[ + + Hello Juliet, are you there? + + + ]] + + local s01 = st.message({ from = "user@localhost/71652fc8-93cb-40c7-8220-47ce80cc417b", type = "chat" }) + :tag("body"):text("Hello Juliet, are you there?"):up() + :tag("delay", { xmlns = "urn:xmpp:delay", from = "localhost", stamp = "{scansion:any}" }):up(); + + --[[ + + Hello Juliet, are you there? + + + + + ]] + + local s02 = st.message({ to = "juliet@localhost", from = "user@localhost/71652fc8-93cb-40c7-8220-47ce80cc417b", type = "chat" }) + :tag("body"):text("Hello Juliet, are you there?"):up() + :tag("stanza-id", { xmlns = "urn:xmpp:sid:0", by = "user@localhost", id = "eb9eaf13-384e-47d1-a6c0-303ef4f1ac70" }):up() + :tag("stanza-id", { xmlns = "urn:xmpp:sid:0", by = "juliet@localhost", id = "f6c6f61d-0b15-46d6-9f69-bca1640401d1" }):up() + :tag("delay", { xmlns = "urn:xmpp:delay", stamp = "2017-05-07T09:46:21Z", from = "localhost" }):up(); + + + + yes(s01, s02); + end); end);