X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F010_basics%2F030_deprecations.t;h=90880c62638ba700fe1ca22cba746efd13b546f9;hb=61697425b329bc667185bb5b2f4be223f2be62c0;hp=7a601a72169fffcd13b08f29fbf307ae6f4c0537;hpb=53a4d826caec4b82f5b23e0bc0a4e8e2f44243b9;p=gitmo%2FMoose.git diff --git a/t/010_basics/030_deprecations.t b/t/010_basics/030_deprecations.t index 7a601a7..90880c6 100644 --- a/t/010_basics/030_deprecations.t +++ b/t/010_basics/030_deprecations.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::Exception; +use Test::Fatal; use Test::More; use Test::Requires { @@ -24,7 +24,7 @@ use Test::Requires { use Moose; - ::lives_and( + ::is( ::exception ( sub { ::stderr_like{ has foo => ( traits => ['String'], @@ -60,7 +60,7 @@ use Test::Requires { 'thing2 method is created as alias in role application' ); } - ); + ), undef ); } { @@ -68,7 +68,7 @@ use Test::Requires { use Moose; - ::lives_and( + ::is( ::exception ( sub { ::stderr_is{ has foo => ( traits => ['String'], @@ -94,7 +94,7 @@ use Test::Requires { ::stderr_is{ Pack1->new->_bar } q{}, 'Providing a reader for a String trait avoids default is warning'; } - ); + ), undef ); sub _build_foo { q{} } } @@ -104,7 +104,7 @@ use Test::Requires { use Moose; - ::lives_and( + ::is( ::exception ( sub { ::stderr_is{ has foo => ( traits => ['String'], @@ -131,7 +131,7 @@ use Test::Requires { q{}, 'Providing a writer for a String trait avoids default is warning'; } - ); + ), undef ); } { @@ -139,7 +139,7 @@ use Test::Requires { use Moose; - ::lives_and( + ::is( ::exception ( sub { ::stderr_is{ has foo => ( traits => ['String'], @@ -166,7 +166,7 @@ use Test::Requires { q{}, 'Providing a accessor for a String trait avoids default is warning'; } - ); + ), undef ); sub _build_foo { q{} } }