Fix missing escape on < 5.8.3 codepath
[gitmo/Role-Tiny.git] / t / accessor-reader-writer.t
index 68a0ae5..eed47f9 100644 (file)
@@ -1,5 +1,6 @@
 use strictures 1;
 use Test::More;
+use Test::Fatal;
 
 my @result;
 
@@ -33,7 +34,7 @@ is( $foo->get_one, 'lol', 'reader works' );
 $foo->set_one('rofl');
 is( $foo->get_one, 'rofl', 'writer works' );
 
-ok( !eval { $foo->get_one('blah'); 1 }, 'reader dies on write' );
+ok( exception { $foo->get_one('blah') }, 'reader dies on write' );
 
 is( $bar->TWO, '...', 'accessor works for reading' );
 $bar->TWO('!!!');