Moved error handling logic to server_events

This commit is contained in:
James Booth
2014-01-28 22:37:50 +00:00
parent b231133f9b
commit 5afb296e67
8 changed files with 53 additions and 31 deletions

View File

@@ -104,3 +104,12 @@ void console_shows_dnd_presence_when_set_all(void **state)
roster_clear();
}
void handle_message_stanza_error_when_no_from(void **state)
{
char *err_msg = "Some error.";
mock_ui_handle_error();
expect_ui_handle_error(err_msg);
handle_message_error(NULL, "cancel", err_msg);
}