From: Shawn M Moore Date: Tue, 16 Dec 2008 07:06:33 +0000 (+0000) Subject: MRO::Compat is the only module loaded by Mouse::Util now so we have to check it directly X-Git-Tag: 0.19~113 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5b776030e913ace7db2ae27ab4538a09c72fdceb;p=gitmo%2FMouse.git MRO::Compat is the only module loaded by Mouse::Util now so we have to check it directly --- diff --git a/t/000-load.t b/t/000-load.t index 66fe9bd..a4df79e 100644 --- a/t/000-load.t +++ b/t/000-load.t @@ -5,22 +5,11 @@ use Test::More tests => 1; use_ok 'Mouse'; -diag "Soft dependency versions:"; -for my $module_name (keys %Mouse::Util::loaded) { - my $version; - if ($Mouse::Util::loaded{$module_name}) { - no strict 'refs'; - $version = ${$module_name . '::VERSION'}; - } - else { - $version = "(provided by Mouse::Util)"; - } - - diag " $module_name: $version"; -} - no warnings 'uninitialized'; +diag "Soft dependency versions:"; +diag " MRO::Compat: $MRO::Compat::VERSION"; + eval { require Moose }; diag " Class::MOP: $Class::MOP::VERSION"; diag " Moose: $Moose::VERSION";