From 71577c1fdd09b1d58710c323264f3bffbf1476ac Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 14 Dec 2013 16:17:53 +0000 Subject: Added missing files --- tests/test_command.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/test_command.c (limited to 'tests/test_command.c') 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 +#include +#include +#include +#include + +#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); +} + -- cgit 1.4.1-2-gfad0