spec/scansion/mam_prefs_prep.scs
branch0.11
changeset 9733 4f6413ec08a8
child 11731 f3aee8a825cc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spec/scansion/mam_prefs_prep.scs	Sun Dec 23 15:22:49 2018 +0100
@@ -0,0 +1,36 @@
+# mod_mam shold apply JIDprep in prefs
+
+[Client] Romeo
+	jid: romeo@localhost
+	password: password
+
+-----
+
+Romeo connects
+
+Romeo sends:
+	<iq id="lx2" type="set">
+		<prefs xmlns="urn:xmpp:mam:2" default="roster">
+			<always>
+				<jid>JULIET@MONTAGUE.LIT</jid>
+			</always>
+			<never>
+				<jid>MONTAGUE@MONTAGUE.LIT</jid>
+			</never>
+		</prefs>
+	</iq>
+
+Romeo receives:
+	<iq id="lx2" type="result">
+		<prefs xmlns="urn:xmpp:mam:2" default="roster">
+			<always>
+				<jid>juliet@montague.lit</jid>
+			</always>
+			<never>
+				<jid>montague@montague.lit</jid>
+			</never>
+		</prefs>
+	</iq>
+
+Romeo disconnects
+