X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F600_todo_tests%2F001_exception_reflects_failed_constraint.t;h=b178c89760b94a71e73e09a5f4edf29fb87cd290;hb=b10dde3a27c11623547417c599ccbd4f92e42651;hp=c768b909111a1dd7229d5df4fdb898a361951b27;hpb=d4e538d9bf46d1c14d2ecfd36ac35ed541ae7ee6;p=gitmo%2FMoose.git diff --git a/t/600_todo_tests/001_exception_reflects_failed_constraint.t b/t/600_todo_tests/001_exception_reflects_failed_constraint.t index c768b90..b178c89 100644 --- a/t/600_todo_tests/001_exception_reflects_failed_constraint.t +++ b/t/600_todo_tests/001_exception_reflects_failed_constraint.t @@ -8,20 +8,20 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal; BEGIN { use_ok('Moose::Util::TypeConstraints'); } -lives_ok { +is( exception { subtype 'ParentConstraint' => as 'Str' => where {0}; -} 'specified parent type constraint'; +}, undef, 'specified parent type constraint' ); my $tc; -lives_ok { +is( exception { $tc = subtype 'ChildConstraint' => as 'ParentConstraint' => where {1}; -} 'specified child type constraint'; +}, undef, 'specified child type constraint' ); { my $errmsg = $tc->validate();