From eff2ef3859e66542b5ce16efd800c3ece63caf71 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 15 Dec 2013 18:15:16 +0000 Subject: Check expected arg to account_get_account in cmd_rooms test --- tests/config/mock_accounts.c | 1 + tests/test_cmd_rooms.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/config/mock_accounts.c b/tests/config/mock_accounts.c index e81aff9b..de83f44a 100644 --- a/tests/config/mock_accounts.c +++ b/tests/config/mock_accounts.c @@ -50,6 +50,7 @@ gchar** accounts_get_list(void) ProfAccount* accounts_get_account(const char * const name) { + check_expected(name); return (ProfAccount *)mock(); } diff --git a/tests/test_cmd_rooms.c b/tests/test_cmd_rooms.c index e58e178d..91581a99 100644 --- a/tests/test_cmd_rooms.c +++ b/tests/test_cmd_rooms.c @@ -56,6 +56,7 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state) will_return(jabber_get_connection_status, JABBER_CONNECTED); will_return(jabber_get_account_name, "account_name"); + expect_string(accounts_get_account, name, "account_name"); will_return(accounts_get_account, account); expect_string(iq_room_list_request, conferencejid, "default_conf_server"); -- cgit 1.4.1-2-gfad0