diff options
author | James Booth <boothj5@gmail.com> | 2013-12-15 16:10:32 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-12-15 16:10:32 +0000 |
commit | 2490f5b417a13639771211a7862bab88a6a5195e (patch) | |
tree | d6b7518c6e8012cc425bc5f0e4789228de496247 /tests | |
parent | 447d235868e9e1554e432aad1e6a3b3db10e7b1d (diff) | |
download | profani-tty-2490f5b417a13639771211a7862bab88a6a5195e.tar.gz |
Seperated command functions into module
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_command.c b/tests/test_command.c index 5469cd44..6dc51ecb 100644 --- a/tests/test_command.c +++ b/tests/test_command.c @@ -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); |