aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-16 22:59:14 +0100
committerKim Alvefur <zash@zash.se>2018-12-16 22:59:14 +0100
commit24a020bbaa7d9d99d26330e2639f9249511f84cd (patch)
treeefe5d6987fcbfdf2d0a941922bc937986213ba02 /spec/scansion
parent826c511cac78d521e6f336a658f50d66cb10d78a (diff)
downloadprosody-24a020bbaa7d9d99d26330e2639f9249511f84cd.tar.gz
prosody-24a020bbaa7d9d99d26330e2639f9249511f84cd.zip
MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Diffstat (limited to 'spec/scansion')
-rw-r--r--spec/scansion/muc_subject_issue_667.scs27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/scansion/muc_subject_issue_667.scs b/spec/scansion/muc_subject_issue_667.scs
index 417f957a..74980073 100644
--- a/spec/scansion/muc_subject_issue_667.scs
+++ b/spec/scansion/muc_subject_issue_667.scs
@@ -42,6 +42,33 @@ Romeo receives:
<body>Hello everyone</body>
</message>
+# Resync
+Romeo sends:
+ <presence to="issue667@conference.localhost/Romeo">
+ <x xmlns="http://jabber.org/protocol/muc"/>
+ </presence>
+
+# Presences
+Romeo receives:
+ <presence from="issue667@conference.localhost/Romeo">
+ <x xmlns="http://jabber.org/protocol/muc#user">
+ <item affiliation="owner" role="moderator" jid="${Romeo's full JID}"/>
+ <status code="110"/>
+ </x>
+ </presence>
+
+Romeo receives:
+ <message type="groupchat" from="issue667@conference.localhost/Romeo">
+ <subject>Greetings</subject>
+ <body>Hello everyone</body>
+ </message>
+
+# the still empty subject
+Romeo receives:
+ <message type="groupchat" from="issue667@conference.localhost">
+ <subject/>
+ </message>
+
# this is a subject change
Romeo sends:
<message to="issue667@conference.localhost" type="groupchat">