Removed debug from tests

This commit is contained in:
James Booth
2013-12-14 17:15:43 +00:00
parent 0b3a9f5785
commit 3e3786eb61
2 changed files with 5 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
#include <setjmp.h>
#include <cmocka.h>
#include <stdlib.h>
#include <glib.h>
#include "xmpp/xmpp.h"
#include "ui/ui.h"
@@ -10,11 +11,13 @@
void cmd_rooms_shows_message_when_not_connected(void **state)
{
CommandHelp *help = malloc(sizeof(CommandHelp));
will_return(jabber_get_connection_status, JABBER_DISCONNECTED);
expect_string(cons_show, msg, "You are not currently connected.");
CommandHelp *help = malloc(sizeof(CommandHelp));
gboolean result = _cmd_rooms(NULL, *help);
assert_true(_cmd_rooms(NULL, *help));
assert_true(result);
free(help);
}