about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-24 18:45:17 +0100
committerJames Booth <boothj5@gmail.com>2015-05-24 18:45:17 +0100
commitcddc55b51b2614e5ea74903c622233a329f81d98 (patch)
tree990fbc442f5a81614c5492564529e925954388e7
parent766b4e0e5f9a5a3517dd7f8e2740c32496d17c4d (diff)
downloadprofani-tty-cddc55b51b2614e5ea74903c622233a329f81d98.tar.gz
Prime rooms query response
-rw-r--r--stabbertests/test_connect.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/stabbertests/test_connect.c b/stabbertests/test_connect.c
index 72f38a36..1b69a990 100644
--- a/stabbertests/test_connect.c
+++ b/stabbertests/test_connect.c
@@ -53,6 +53,15 @@ sends_rooms_iq(void **state)
     cmd_process_input(strdup("/connect stabber@localhost port 5230"));
     prof_process_xmpp();
 
+    stbbr_for("confreq",
+        "<iq id=\"confreq\" type=\"result\" to=\"stabber@localhost/profanity\" from=\"conference.localhost\">"
+            "<query xmlns=\"http://jabber.org/protocol/disco#items\">"
+                "<item jid=\"chatroom@conference.localhost\" name=\"A chat room\"/>"
+                "<item jid=\"hangout@conference.localhost\" name=\"Another chat room\"/>"
+            "</query>"
+        "</iq>"
+    );
+
     cmd_process_input(strdup("/rooms"));
     prof_process_xmpp();