aboutsummaryrefslogtreecommitdiffstats
path: root/spec
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
commit9aee66a6c5ee1754afd603b14c7109c2b13db542 (patch)
treeefe5d6987fcbfdf2d0a941922bc937986213ba02 /spec
parent77a51af33dbafc0f301bce2f3b09122645f4e406 (diff)
downloadprosody-9aee66a6c5ee1754afd603b14c7109c2b13db542.tar.gz
prosody-9aee66a6c5ee1754afd603b14c7109c2b13db542.zip
MUC: Test that subject is still empty after sending a non-subject change message with a subject (#667)
Diffstat (limited to 'spec')
-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">