about summary refs log tree commit diff stats
path: root/tests/test_cmd_rooms.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-12-19 21:05:39 +0000
committerJames Booth <boothj5@gmail.com>2013-12-19 21:05:39 +0000
commitd56f6dc39b002e16966354b0ad98cf7801260e0c (patch)
tree07480d1c9e14084dbfc5345a00fc002419ef50d9 /tests/test_cmd_rooms.c
parentb27c5d0f5baa7161231642b14106db2e96065f95 (diff)
downloadprofani-tty-d56f6dc39b002e16966354b0ad98cf7801260e0c.tar.gz
Added mocks and stubs for cons_show
Diffstat (limited to 'tests/test_cmd_rooms.c')
-rw-r--r--tests/test_cmd_rooms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_cmd_rooms.c b/tests/test_cmd_rooms.c
index a31f67f3..01aeecbe 100644
--- a/tests/test_cmd_rooms.c
+++ b/tests/test_cmd_rooms.c
@@ -9,15 +9,17 @@
 #include "xmpp/mock_xmpp.h"
 
 #include "ui/ui.h"
+#include "ui/mock_ui.h"
 
 #include "command/commands.h"
 
 static void test_with_connection_status(jabber_conn_status_t status)
 {
+    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
 
     mock_connection_status(status);
-    expect_string(cons_show, output, "You are not currently connected.");
+    expect_cons_show("You are not currently connected.");
 
     gboolean result = cmd_rooms(NULL, *help);
     assert_true(result);