blob: d553f7e52eba51908177c3f08b7c691ce3b49fab (
plain) (
tree)
|
|
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdlib.h>
#include <glib.h>
#include "xmpp/xmpp.h"
#include "ui/ui.h"
#include "command/command.h"
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.");
gboolean result = _cmd_rooms(NULL, *help);
assert_true(result);
free(help);
}
|