about summary refs log tree commit diff stats
path: root/tests
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
parentf18759192c1dd82385cfbc3edabea3e9a920e23c (diff)
downloadprofani-tty-a2ccd896465982bd6059ae7770532417b1062bdb.tar.gz
Autogenerate room name with UUID for /join with no args
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd_join.c17
-rw-r--r--tests/test_cmd_join.h1
-rw-r--r--tests/testsuite.c1
3 files changed, 0 insertions, 19 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));
diff --git a/tests/test_cmd_join.h b/tests/test_cmd_join.h
index 812aee87..a96fa435 100644
--- a/tests/test_cmd_join.h
+++ b/tests/test_cmd_join.h
@@ -2,7 +2,6 @@ void cmd_join_shows_message_when_disconnecting(void **state);
 void cmd_join_shows_message_when_connecting(void **state);
 void cmd_join_shows_message_when_disconnected(void **state);
 void cmd_join_shows_message_when_undefined(void **state);
-void cmd_join_shows_usage_when_no_args(void **state);
 void cmd_join_shows_error_message_when_invalid_room_jid(void **state);
 void cmd_join_uses_account_mucservice_when_no_service_specified(void **state);
 void cmd_join_uses_supplied_nick(void **state);
diff --git a/tests/testsuite.c b/tests/testsuite.c
index 78d7b570..15682d1f 100644
--- a/tests/testsuite.c
+++ b/tests/testsuite.c
@@ -563,7 +563,6 @@ int main(int argc, char* argv[]) {
         unit_test(cmd_join_shows_message_when_connecting),
         unit_test(cmd_join_shows_message_when_disconnected),
         unit_test(cmd_join_shows_message_when_undefined),
-        unit_test(cmd_join_shows_usage_when_no_args),
         unit_test(cmd_join_shows_error_message_when_invalid_room_jid),
         unit_test(cmd_join_uses_account_mucservice_when_no_service_specified),
         unit_test(cmd_join_uses_supplied_nick),