X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fc3_mro.t;h=d987544e93644a9581dfa0c3b7dbb764b3bf8117;hb=2bab21f6e1abb1e23e7e922212188820e3ad073d;hp=c731202c20e07e819b883e4ad687fc01e1f506cd;hpb=2f4cd6f5131dedd5140723971561a931ab968353;p=catagits%2FCatalyst-Runtime.git diff --git a/t/c3_mro.t b/t/c3_mro.t index c731202..d987544 100644 --- a/t/c3_mro.t +++ b/t/c3_mro.t @@ -4,9 +4,7 @@ use warnings; use Test::More; require Catalyst; require Module::Pluggable::Object; - -eval "require Class::C3"; -plan skip_all => "This test requires Class::C3" if $@; +use MRO::Compat; # Get a list of all Catalyst:: packages in blib via M::P::O my @cat_mods; @@ -34,7 +32,7 @@ plan tests => scalar @cat_mods; # foreach my $cat_mod (@cat_mods) { eval " require $cat_mod "; - eval { Class::C3::calculateMRO($cat_mod) }; - ok(!$@, "calculateMRO for $cat_mod"); + eval { mro::get_linear_isa($cat_mod, 'c3') }; + ok(!$@, "calculateMRO for $cat_mod: $@"); }