about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-12-15 18:15:16 +0000
committerJames Booth <boothj5@gmail.com>2013-12-15 18:15:16 +0000
commiteff2ef3859e66542b5ce16efd800c3ece63caf71 (patch)
treeb5696f9cfa2bc22333e3f0ad679d0976537558bb
parentbf347ab9e05b4b5bcd0dfa354f139aca85744440 (diff)
downloadprofani-tty-eff2ef3859e66542b5ce16efd800c3ece63caf71.tar.gz
Check expected arg to account_get_account in cmd_rooms test
-rw-r--r--tests/config/mock_accounts.c1
-rw-r--r--tests/test_cmd_rooms.c1
2 files changed, 2 insertions, 0 deletions
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");