diff options
author | James Booth <boothj5@gmail.com> | 2014-03-08 21:20:26 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-03-08 21:20:26 +0000 |
commit | b177250f47f5599943b6772aed43de49834147e2 (patch) | |
tree | 822ad8a0b4e38c84b1e004922e1a8e0308d809ac /tests/test_muc.c | |
parent | dd1ee18c72268839de8af64de5eb07c5a2499ff2 (diff) | |
download | profani-tty-b177250f47f5599943b6772aed43de49834147e2.tar.gz |
Refactored muc_room_is_active to only take room, rather than full jid
Diffstat (limited to 'tests/test_muc.c')
-rw-r--r-- | tests/test_muc.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/test_muc.c b/tests/test_muc.c index ba4fef1d..3cfb38b4 100644 --- a/tests/test_muc.c +++ b/tests/test_muc.c @@ -59,23 +59,20 @@ void test_muc_invite_count_5(void **state) void test_muc_room_is_not_active(void **state) { - Jid *jidp = jid_create("room@server.org/bob"); + char *room = "room@server.org"; - gboolean room_is_active = muc_room_is_active(jidp); + gboolean room_is_active = muc_room_is_active(room); assert_false(room_is_active); - - jid_destroy(jidp); } void test_muc_room_is_active(void **state) { - Jid *jidp = jid_create("room@server.org/bob"); - muc_join_room(jidp->barejid, jidp->resourcepart); + char *room = "room@server.org"; + char *nick = "bob"; + muc_join_room(room, nick); - gboolean room_is_active = muc_room_is_active(jidp); + gboolean room_is_active = muc_room_is_active(room); assert_true(room_is_active); - - jid_destroy(jidp); } |