X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F500_moose_extends_mouse.t;h=bcb51dd98547227db2d09768c6352cb9c2324725;hb=37dc67cb9daf91c9530e5ffc762de36cb0432c7f;hp=25f29c5b8f7e7ce9be662002d3741220427c4cc0;hpb=8c831d08b0d23c9dfcc4a85f6444915c988b5538;p=gitmo%2FMouse.git diff --git a/t/500_moose_extends_mouse.t b/t/500_moose_extends_mouse.t index 25f29c5..bcb51dd 100644 --- a/t/500_moose_extends_mouse.t +++ b/t/500_moose_extends_mouse.t @@ -3,8 +3,14 @@ use strict; use warnings; -use Test::More 'no_plan'; -use Mouse::Util ':test'; +use Test::More; +use Test::Exception; +BEGIN { + plan skip_all => "Moose 0.68 required for this test" unless eval { require Moose && Moose->VERSION('0.68') }; + plan tests => 27; +} + +use Test::Exception; { package Foo; @@ -78,7 +84,7 @@ is( eval { $bar->bar }, undef, "no default value" ); is_deeply( - [ sort map { $_->name } Bar->meta->compute_all_applicable_attributes ], + [ sort map { $_->name } Bar->meta->get_all_attributes ], [ sort qw(foo bar) ], "attributes", );