about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-27 01:14:59 +0000
committerJames Booth <boothj5@gmail.com>2013-01-27 01:14:59 +0000
commit8bdab23e2502fc518389730a2bd2d6447a1a6739 (patch)
tree9e821af4bdbf244f6d79fec1edd0de4348d80c47 /tests
parent1a30ee15e04bdd950bdab94e2d5e7b6e86c7e7c5 (diff)
downloadprofani-tty-8bdab23e2502fc518389730a2bd2d6447a1a6739.tar.gz
Renamed create jid function using barejid and resource
Diffstat (limited to 'tests')
-rw-r--r--tests/test_jid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_jid.c b/tests/test_jid.c
index ce33909a..0b9da5ab 100644
--- a/tests/test_jid.c
+++ b/tests/test_jid.c
@@ -107,14 +107,14 @@ void create_jid_from_bare_returns_domainpart(void)
 
 void create_room_jid_returns_room(void)
 {
-    Jid *result = jid_create_room_jid("room@conference.domain.org", "myname");
+    Jid *result = jid_create_from_bare_and_resource("room@conference.domain.org", "myname");
 
     assert_string_equals("room@conference.domain.org", result->barejid);
 }
 
 void create_room_jid_returns_nick(void)
 {
-    Jid *result = jid_create_room_jid("room@conference.domain.org", "myname");
+    Jid *result = jid_create_from_bare_and_resource("room@conference.domain.org", "myname");
 
     assert_string_equals("myname", result->resourcepart);
 }