Seperated command functions into module
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "xmpp/xmpp.h"
|
||||
#include "ui/ui.h"
|
||||
#include "command/command.h"
|
||||
#include "command/commands.h"
|
||||
|
||||
static void test_with_connection_status(jabber_conn_status_t status)
|
||||
{
|
||||
@@ -16,7 +16,7 @@ static void test_with_connection_status(jabber_conn_status_t status)
|
||||
will_return(jabber_get_connection_status, status);
|
||||
expect_string(cons_show, msg, "You are not currently connected.");
|
||||
|
||||
gboolean result = _cmd_rooms(NULL, *help);
|
||||
gboolean result = cmd_rooms(NULL, *help);
|
||||
assert_true(result);
|
||||
|
||||
free(help);
|
||||
@@ -59,7 +59,7 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state)
|
||||
will_return(accounts_get_account, account);
|
||||
expect_string(iq_room_list_request, conferencejid, "default_conf_server");
|
||||
|
||||
gboolean result = _cmd_rooms(args, *help);
|
||||
gboolean result = cmd_rooms(args, *help);
|
||||
|
||||
assert_true(result);
|
||||
|
||||
@@ -75,7 +75,7 @@ void cmd_arg_used_when_passed(void **state)
|
||||
will_return(jabber_get_connection_status, JABBER_CONNECTED);
|
||||
expect_string(iq_room_list_request, conferencejid, "conf_server_arg");
|
||||
|
||||
gboolean result = _cmd_rooms(args, *help);
|
||||
gboolean result = cmd_rooms(args, *help);
|
||||
|
||||
assert_true(result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user