From f3f383db83504fd6e921b7899bbe893575625d45 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sat, 4 Aug 2018 18:52:16 -0300 Subject: Add tests --- t/50-exception.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 t/50-exception.t (limited to 't/50-exception.t') diff --git a/t/50-exception.t b/t/50-exception.t new file mode 100644 index 0000000..d252153 --- /dev/null +++ b/t/50-exception.t @@ -0,0 +1,12 @@ +use lib 'lib'; +use Test; +use Matrix::Client; +use Matrix::Client::Exception; + +plan 1; + +my $c = Matrix::Client.new(:home-server); + +throws-like { + $c.get('/unknown-endpoint'); +}, X::Matrix::Response, 'Unknown endpoint throws exception'; -- cgit v1.2.3-54-g00ecf