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-15 20:38:26 +0000
committerJames Booth <boothj5@gmail.com>2013-12-15 20:38:26 +0000
commit5c65599e6accb35c056220b40b2b2251d0c8f4fc (patch)
treee6c1c19392831c9941b0d90f008e5cbda1027a80 /tests/test_cmd_rooms.c
parent5e739cbfb7763ee926fbeb3cb8bd1d81f943c55e (diff)
downloadprofani-tty-5c65599e6accb35c056220b40b2b2251d0c8f4fc.tar.gz
Tests lowercasing argument on cmd_connect
Diffstat (limited to 'tests/test_cmd_rooms.c')
-rw-r--r--tests/test_cmd_rooms.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_cmd_rooms.c b/tests/test_cmd_rooms.c
index b6782176..e39d9088 100644
--- a/tests/test_cmd_rooms.c
+++ b/tests/test_cmd_rooms.c
@@ -12,10 +12,10 @@
 static void test_with_connection_status(jabber_conn_status_t status)
 {
     CommandHelp *help = malloc(sizeof(CommandHelp));
-    
+
     will_return(jabber_get_connection_status, status);
     expect_string(cons_show, output, "You are not currently connected.");
-    
+
     gboolean result = cmd_rooms(NULL, *help);
     assert_true(result);
 
@@ -52,14 +52,14 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state)
     CommandHelp *help = malloc(sizeof(CommandHelp));
     ProfAccount *account = malloc(sizeof(ProfAccount));
     account->muc_service = "default_conf_server";
-    gchar *args[] = { NULL }; 
+    gchar *args[] = { NULL };
 
     will_return(jabber_get_connection_status, JABBER_CONNECTED);
     will_return(jabber_get_account_name, "account_name");
     expect_string(accounts_get_account, name, "account_name");
     will_return(accounts_get_account, account);
     expect_string(iq_room_list_request, conferencejid, "default_conf_server");
-    
+
     gboolean result = cmd_rooms(args, *help);
 
     assert_true(result);
@@ -71,11 +71,11 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state)
 void cmd_rooms_arg_used_when_passed(void **state)
 {
     CommandHelp *help = malloc(sizeof(CommandHelp));
-    gchar *args[] = { "conf_server_arg" }; 
+    gchar *args[] = { "conf_server_arg" };
 
     will_return(jabber_get_connection_status, JABBER_CONNECTED);
     expect_string(iq_room_list_request, conferencejid, "conf_server_arg");
-    
+
     gboolean result = cmd_rooms(args, *help);
 
     assert_true(result);