about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-24 18:35:06 +0100
committerJames Booth <boothj5@gmail.com>2015-05-24 18:35:06 +0100
commit766b4e0e5f9a5a3517dd7f8e2740c32496d17c4d (patch)
tree9113793568eb7dd9ba9ba5877f16ac94561d1520
parent80665ea0514a6a9b93af7858a3db1467091f80df (diff)
downloadprofani-tty-766b4e0e5f9a5a3517dd7f8e2740c32496d17c4d.tar.gz
Added rooms iq verification
-rw-r--r--stabbertests/test_connect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stabbertests/test_connect.c b/stabbertests/test_connect.c
index a09b8661..72f38a36 100644
--- a/stabbertests/test_connect.c
+++ b/stabbertests/test_connect.c
@@ -55,4 +55,10 @@ sends_rooms_iq(void **state)
 
     cmd_process_input(strdup("/rooms"));
     prof_process_xmpp();
+
+    assert_true(stbbr_verify_last(
+        "<iq id=\"confreq\" to=\"conference.localhost\" type=\"get\">"
+            "<query xmlns=\"http://jabber.org/protocol/disco#items\"/>"
+        "</iq>"
+    ));
 }