Clarify sentence on removal of deprecated APIs
[gitmo/Moose.git] / t / 010_basics / 011_moose_respects_type_constraints.t
index e8ef84d..3485a00 100644 (file)
@@ -50,12 +50,12 @@ ok(!$foo_constraint->check('Bar'), '... my constraint failed correctly');
 my $bar = Bar->new;
 isa_ok($bar, 'Bar');
 
-ok ! exception {
+is( exception {
     $bar->foo('Foo');
-}, '... checked the type constraint correctly';
+}, undef, '... checked the type constraint correctly' );
 
-ok exception {
+isnt( exception {
     $bar->foo(Foo->new);
-}, '... checked the type constraint correctly';
+}, undef, '... checked the type constraint correctly' );
 
 done_testing;