Set columns when running functional tests

This commit is contained in:
James Booth
2015-06-13 23:59:33 +01:00
parent 82ff85c329
commit e50461a897
4 changed files with 76 additions and 25 deletions

View File

@@ -16,12 +16,13 @@
static void test_with_connection_status(jabber_conn_status_t status)
{
CommandHelp *help = malloc(sizeof(CommandHelp));
gchar *args[] = { NULL };
will_return(jabber_get_connection_status, status);
expect_cons_show("You are not currently connected.");
gboolean result = cmd_roster(NULL, *help);
gboolean result = cmd_roster(args, *help);
assert_true(result);
free(help);