From: Dave Rolsky Date: Wed, 22 Oct 2008 02:55:12 +0000 (+0000) Subject: Fix test description and some tidying X-Git-Tag: 0.68~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=202ccce01fee680d3637144e98308de85323a1cc;p=gitmo%2FClass-MOP.git Fix test description and some tidying --- diff --git a/t/083_load_class.t b/t/083_load_class.t index 74b77c3..dd49458 100644 --- a/t/083_load_class.t +++ b/t/083_load_class.t @@ -43,15 +43,19 @@ ok( !Class::MOP::does_metaclass_exist("Class"), "no metaclass for non MOP class" throws_ok { Class::MOP::load_class('FakeClassOhNo'); -} qr/Can't locate /; +} +qr/Can't locate /; throws_ok { Class::MOP::load_class('SyntaxError'); -} qr/Missing right curly/; +} +qr/Missing right curly/; throws_ok { Class::MOP::load_class('This::Does::Not::Exist'); -} qr/Could not load class \(This::Does::Not::Exist\) because :/, 'Moose relies on this behaviour'; +} +qr/Could not load class \(This::Does::Not::Exist\) because :/, + 'Many Moose tests rely on the exact formatting of this error'; { package Other;