diff options
author | James Booth <boothj5@gmail.com> | 2013-12-14 16:17:53 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-12-14 16:17:53 +0000 |
commit | 71577c1fdd09b1d58710c323264f3bffbf1476ac (patch) | |
tree | 43b62cde0913d7dba361f5750dd397afc93f4a28 /tests/test_command.c | |
parent | 3a403046ff241381e0f9750dfe39f1e05c73fd63 (diff) | |
download | profani-tty-71577c1fdd09b1d58710c323264f3bffbf1476ac.tar.gz |
Added missing files
Diffstat (limited to 'tests/test_command.c')
-rw-r--r-- | tests/test_command.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_command.c b/tests/test_command.c new file mode 100644 index 00000000..13738032 --- /dev/null +++ b/tests/test_command.c @@ -0,0 +1,21 @@ +#include <stdarg.h> +#include <stddef.h> +#include <setjmp.h> +#include <cmocka.h> +#include <stdlib.h> + +#include "xmpp/xmpp.h" +#include "ui/ui.h" +#include "command/command.h" + +void cmd_rooms_shows_message_when_not_connected(void **state) +{ + will_return(jabber_get_connection_status, JABBER_DISCONNECTED); + expect_string(cons_show, msg, "You are not currently connected."); + CommandHelp *help = malloc(sizeof(CommandHelp)); + + assert_true(_cmd_rooms(NULL, *help)); + + free(help); +} + |