X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F201-squirrel.t;h=daeed221d206528bb7cd0b19052e52f9aa89923a;hb=7b133c927969b2e9233a51c6be5caed54c88915e;hp=8a377318210410dbd54d1a99d41129fb9f084f29;hpb=6c169c5063b77a791818f5db2c1da3bd9b47d3f9;p=gitmo%2FMouse.git diff --git a/t/201-squirrel.t b/t/201-squirrel.t index 8a37731..daeed22 100644 --- a/t/201-squirrel.t +++ b/t/201-squirrel.t @@ -6,6 +6,11 @@ use warnings; use Test::More; use Scalar::Util 'blessed'; +# Don't spew deprecation warnings onto the user's screen +BEGIN { + $SIG{__WARN__} = sub { warn $_[0] if $_[0] !~ /Squirrel is deprecated/ }; +} + do { package Foo; use Squirrel; @@ -22,7 +27,7 @@ do { # affecting its definition BEGIN { - plan skip_all => "Moose required for this test" unless eval { require Moose }; + plan skip_all => "Moose 0.68 required for this test" unless eval { require Moose && Moose->VERSION('0.68') }; plan tests => 12; }