Fix release year for last two releases
[gitmo/Moose.git] / t / 010_basics / 030_deprecations.t
index d14fe5a..90880c6 100644 (file)
@@ -8,7 +8,7 @@ use Test::Requires {
     'Test::Output' => '0.01',
 };
 
-# All tests are wrapped with exception{} because the stderr output tests will
+# All tests are wrapped with lives_and because the stderr output tests will
 # otherwise eat exceptions, and the test just dies silently.
 
 {
@@ -24,7 +24,7 @@ use Test::Requires {
 
     use Moose;
 
-    ::ok not ::exception(
+    ::is( ::exception (
         sub {
             ::stderr_like{ has foo => (
                     traits => ['String'],
@@ -32,7 +32,7 @@ use Test::Requires {
                     isa    => 'Str',
                 );
                 }
-                qr{\QAllowing a native trait to automatically supply a default is deprecated. You can avoid this warning by supply a default, builder, or making the attribute required at t/010_basics/030_deprecations.t line},
+                qr{\QAllowing a native trait to automatically supply a default is deprecated. You can avoid this warning by supplying a default, builder, or making the attribute required at t/010_basics/030_deprecations.t line},
                 'Not providing a default for native String trait warns';
 
             ::stderr_is{ has bar => (
@@ -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;
 
-    ::ok not ::exception(
+    ::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;
 
-    ::ok not ::exception(
+    ::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;
 
-    ::ok not ::exception(
+    ::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{} }
 }