1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Check expected arg to account_get_account in cmd_rooms test

This commit is contained in:
James Booth 2013-12-15 18:15:16 +00:00
parent bf347ab9e0
commit eff2ef3859
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ gchar** accounts_get_list(void)
ProfAccount* accounts_get_account(const char * const name)
{
check_expected(name);
return (ProfAccount *)mock();
}

View File

@ -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");