about summary refs log tree commit diff stats
path: root/tests/test_cmd_join.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-04-11 23:37:52 +0100
committerJames Booth <boothj5@gmail.com>2015-04-11 23:37:52 +0100
commita2ccd896465982bd6059ae7770532417b1062bdb (patch)
tree9f627a7f0ba5aace156d3cd5511b2ac3e66110e8 /tests/test_cmd_join.c
parentf18759192c1dd82385cfbc3edabea3e9a920e23c (diff)
downloadprofani-tty-a2ccd896465982bd6059ae7770532417b1062bdb.tar.gz
Autogenerate room name with UUID for /join with no args
Diffstat (limited to 'tests/test_cmd_join.c')
-rw-r--r--tests/test_cmd_join.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/test_cmd_join.c b/tests/test_cmd_join.c
index 10ffa547..19824b3a 100644
--- a/tests/test_cmd_join.c
+++ b/tests/test_cmd_join.c
@@ -50,23 +50,6 @@ void cmd_join_shows_message_when_undefined(void **state)
     test_with_connection_status(JABBER_UNDEFINED);
 }
 
-void cmd_join_shows_usage_when_no_args(void **state)
-{
-    CommandHelp *help = malloc(sizeof(CommandHelp));
-    help->usage = "some usage";
-    gchar *args[] = { NULL };
-
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
-
-    expect_cons_show("Usage: some usage");
-    expect_cons_show("");
-
-    gboolean result = cmd_join(args, *help);
-    assert_true(result);
-
-    free(help);
-}
-
 void cmd_join_shows_error_message_when_invalid_room_jid(void **state)
 {
     CommandHelp *help = malloc(sizeof(CommandHelp));