Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 040_type_constraints / 029_define_type_twice_throws.t
index b093d12..6cc05ed 100644 (file)
@@ -17,11 +17,11 @@ BEGIN {
     subtype 'MySubType' => as 'Int' => where { 1 };
 }
 
-like exception {
+like( exception {
     package Some::Other::Class;
     use Moose::Util::TypeConstraints;
 
     subtype 'MySubType' => as 'Int' => where { 1 };
-}, qr/cannot be created again/, 'Trying to create same type twice throws';
+}, qr/cannot be created again/, 'Trying to create same type twice throws' );
 
 done_testing;