diff options
author | James Booth <boothj5@gmail.com> | 2015-05-24 18:45:17 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-24 18:45:17 +0100 |
commit | cddc55b51b2614e5ea74903c622233a329f81d98 (patch) | |
tree | 990fbc442f5a81614c5492564529e925954388e7 /stabbertests | |
parent | 766b4e0e5f9a5a3517dd7f8e2740c32496d17c4d (diff) | |
download | profani-tty-cddc55b51b2614e5ea74903c622233a329f81d98.tar.gz |
Prime rooms query response
Diffstat (limited to 'stabbertests')
-rw-r--r-- | stabbertests/test_connect.c | 9 |
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(); |