From e97ec56fce641554ff7aa2ff9f0583e1fb9fc364 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 9 Apr 2014 22:29:38 +0100 Subject: Added ui_already_connected --- tests/test_cmd_connect.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/test_cmd_connect.c') diff --git a/tests/test_cmd_connect.c b/tests/test_cmd_connect.c index 33f49164..76493115 100644 --- a/tests/test_cmd_connect.c +++ b/tests/test_cmd_connect.c @@ -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); -- cgit 1.4.1-2-gfad0