From e69b990cf4ac80adac0496d988717b49f41547d0 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Wed, 8 Aug 2018 22:35:21 -0300 Subject: Return '' if there's no m.room.name event for that room See issue #13 in github. --- t/30-room.t | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 't') diff --git a/t/30-room.t b/t/30-room.t index e12a17c..56321a0 100644 --- a/t/30-room.t +++ b/t/30-room.t @@ -80,15 +80,11 @@ subtest 'name' => { my $name = "Name room test"; my $test-room = $client.create-room: - :creation_content({ - "m.federate" => False - }); + :creation_content({ + "m.federate" => False + }); - throws-like { - $test-room.name() - }, X::Matrix::Response, - message => /M_NOT_FOUND/, - '.name without name gives event not found'; + is $test-room.name(), ''; lives-ok { $test-room.send-state('m.room.name', :name($name)) -- cgit v1.2.3-70-g09d2