X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F800_shikabased%2F013-compatibility-get_method_list.t;h=d43247c9bab381ba5b742affd3933fd860024500;hb=a81cc7b83f688ff21284b599a81e14a44bcdf401;hp=1fd9a2f3009df67578828b2fbed9c02e7f221bf9;hpb=faa45e546ff56d48fbd9fec43d1fc014520ca0e3;p=gitmo%2FMouse.git diff --git a/t/800_shikabased/013-compatibility-get_method_list.t b/t/800_shikabased/013-compatibility-get_method_list.t index 1fd9a2f..d43247c 100644 --- a/t/800_shikabased/013-compatibility-get_method_list.t +++ b/t/800_shikabased/013-compatibility-get_method_list.t @@ -1,7 +1,7 @@ use strict; use warnings; use Test::More; -plan skip_all => "This test requires Moose 0.81" unless eval { require Moose; Moose->VERSION(0.81); }; +plan skip_all => "This test requires Moose 0.90" unless eval { require Moose; Moose->VERSION(0.90); }; plan tests => 6; test($_) for qw/Moose Mouse/; @@ -12,12 +12,14 @@ sub test { eval <<"..."; { package ${class}Class; + use Carp; # import external functions (not our methods) use ${class}; sub foo { } no ${class}; } { package ${class}ClassImm; + use Carp; # import external functions (not our methods) use ${class}; sub foo { } no ${class}; @@ -25,8 +27,10 @@ sub test { } { package ${class}Role; + use Carp; # import external functions (not our methods) use ${class}::Role; sub bar { } + no ${class}::Role; } ... die $@ if $@;