From 368368948e2b0916e6cee1b2ad9bf6fec93cbe24 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Thu, 20 Aug 2020 15:28:56 +0100 Subject: [PATCH] Improve test coverage of Venue --- t/05-instantiation.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/05-instantiation.t b/t/05-instantiation.t index ee52d1d..d3839ca 100644 --- a/t/05-instantiation.t +++ b/t/05-instantiation.t @@ -79,6 +79,8 @@ is($venue->id, 17_522, 'Got the right venue'); is($venue->displayName, 'O2 Brixton Academy', 'Venue has the correct name'); isa_ok($venue->metroArea, 'Net::Songkick::MetroArea'); +# Backwards compatibility +isa_ok($venue->metro_area, 'Net::Songkick::MetroArea'); is($venue->metroArea->displayName, 'London', 'Metro area is in the correct Metro Area');