X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F400_moose_util%2F008_method_mod_args.t;h=be7b29fa19f91cbf130ea2ab86bbe6ff994bf4cf;hb=be0ed15704fdad5f2d8517380a6f24687432c1dd;hp=5919287ab627d57d672bb4cc1c2b0af003ea7e8f;hpb=d26c82ab01d405ba41f1c28cdd2f2c8ffa215de1;p=gitmo%2FMoose.git diff --git a/t/400_moose_util/008_method_mod_args.t b/t/400_moose_util/008_method_mod_args.t index 5919287..be7b29f 100644 --- a/t/400_moose_util/008_method_mod_args.t +++ b/t/400_moose_util/008_method_mod_args.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal; use Moose::Util qw( add_method_modifier ); my $COUNT = 0; @@ -14,13 +14,13 @@ my $COUNT = 0; sub bar { } } -lives_ok { +ok ! exception { add_method_modifier('Foo', 'before', [ ['foo', 'bar'], sub { $COUNT++ } ]); -} 'method modifier with an arrayref'; +}, 'method modifier with an arrayref'; -dies_ok { +ok exception { add_method_modifier('Foo', 'before', [ {'foo' => 'bar'}, sub { $COUNT++ } ]); -} 'method modifier with a hashref'; +}, 'method modifier with a hashref'; my $foo = Foo->new; $foo->foo;