X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F201-squirrel.t;h=daeed221d206528bb7cd0b19052e52f9aa89923a;hb=bf8497ea04511714983c1e914d758ca19ccdf39d;hp=85c0fe5885a27f25017163576d87a85479d554b6;hpb=01db075b42d0223394e07ab15ff55defed9df903;p=gitmo%2FMouse.git diff --git a/t/201-squirrel.t b/t/201-squirrel.t index 85c0fe5..daeed22 100644 --- a/t/201-squirrel.t +++ b/t/201-squirrel.t @@ -4,7 +4,12 @@ use strict; use warnings; use Test::More; -use Mouse::Util 'blessed'; +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; @@ -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; }