Added ui_already_connected

This commit is contained in:
James Booth
2014-04-09 22:29:38 +01:00
parent 714ee24863
commit e97ec56fce
6 changed files with 24 additions and 5 deletions

View File

@@ -19,13 +19,11 @@
static void test_with_connection_status(jabber_conn_status_t status)
{
mock_cons_show();
stub_ui_already_connected();
CommandHelp *help = malloc(sizeof(CommandHelp));
mock_connection_status(status);
expect_cons_show("You are either connected already, or a login is in process.");
gboolean result = cmd_connect(NULL, *help);
assert_true(result);