diff options
author | James Booth <boothj5@gmail.com> | 2014-01-30 23:36:24 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-30 23:36:50 +0000 |
commit | a472ce653f1801726f18ca579f8dcffd64ef4d20 (patch) | |
tree | c86ce838112a50a10453289ec2615cb1f9499ef0 /tests/test_muc.c | |
parent | 63b3299b069a276994508859e4a8b6500f47df2e (diff) | |
download | profani-tty-a472ce653f1801726f18ca579f8dcffd64ef4d20.tar.gz |
Added muc remove invite test
Diffstat (limited to 'tests/test_muc.c')
-rw-r--r-- | tests/test_muc.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/test_muc.c b/tests/test_muc.c index 42a27931..3a8da50a 100644 --- a/tests/test_muc.c +++ b/tests/test_muc.c @@ -11,8 +11,20 @@ void test_muc_add_invite(void **state) char *room = "room@conf.server"; muc_init(); muc_add_invite(room); - + gboolean invite_exists = muc_invites_include(room); assert_true(invite_exists); } + +void test_muc_remove_invite(void **state) +{ + char *room = "room@conf.server"; + muc_init(); + muc_add_invite(room); + muc_remove_invite(room); + + gboolean invite_exists = muc_invites_include(room); + + assert_false(invite_exists); +} |