X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F18_combined_libs.t;h=cd2178dbdee0459e696540a62ab154d701178a51;hb=10390913a3dce9f3c43d7797a41b2384634bc9a1;hp=a7e25296823ccb0bc13f3eda64d6e00b59c36fed;hpb=e2d7e14bfc22917ac67b47eb3592b5d0ceb6f8f9;p=gitmo%2FMooseX-Types.git diff --git a/t/18_combined_libs.t b/t/18_combined_libs.t index a7e2529..cd2178d 100644 --- a/t/18_combined_libs.t +++ b/t/18_combined_libs.t @@ -5,7 +5,7 @@ use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 5; -use Test::Exception; +use Test::Fatal; BEGIN { use_ok 'Combined', qw/Foo2Alias MTFNPY NonEmptyStr/ } @@ -18,6 +18,6 @@ ok MTFNPY; is NonEmptyStr->name, 'TestLibrary2::NonEmptyStr', 'precedence for conflicting types is correct'; -throws_ok { Combined->import('NonExistentType') } +like exception { Combined->import('NonExistentType') }, qr/\Qmain asked for a type (NonExistentType) which is not found in any of the type libraries (TestLibrary TestLibrary2) combined by Combined/, 'asking for a non-existent type from a combined type library gives a useful error';