X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F005_w_versions_and_authority_check.t;h=cafb13a06ba66e43bdf2f257f00d0d57e33f8875;hb=619ab942be0a8bd8f530c57ca5b0c8d833cdc89b;hp=9dba0614f155c303e21d432c6e365f2fe8ff1051;hpb=b5f363acfcf077778dd4f3b59460a0cbb9e51400;p=gitmo%2FMooseX-Storage.git diff --git a/t/005_w_versions_and_authority_check.t b/t/005_w_versions_and_authority_check.t index 9dba061..cafb13a 100644 --- a/t/005_w_versions_and_authority_check.t +++ b/t/005_w_versions_and_authority_check.t @@ -4,7 +4,8 @@ use strict; use warnings; use Test::More tests => 8; -use Test::Exception; +use Test::Deep; +use Test::Fatal; BEGIN { use_ok('MooseX::Storage'); @@ -50,7 +51,7 @@ checks are performed upon object expansion. ); isa_ok( $foo, 'Foo' ); - is_deeply( + cmp_deeply( $foo->pack, { __CLASS__ => 'Foo-0.01-cpan:JRANDOM', @@ -84,7 +85,7 @@ Moose::Meta::Class->create('Bar', authority => 'cpan:JRANDOM', ); -dies_ok { +ok(exception { Foo->unpack( { __CLASS__ => 'Foo-0.01-cpan:JRANDOM', @@ -94,14 +95,14 @@ dies_ok { } } ); -} '... could not unpack, versions are different ' . $@; +}, '... could not unpack, versions are different ' . $@); Moose::Meta::Class->create('Bar', version => '0.01', authority => 'cpan:DSTATIC', ); -dies_ok { +ok(exception { Foo->unpack( { __CLASS__ => 'Foo-0.01-cpan:JRANDOM', @@ -111,4 +112,4 @@ dies_ok { } } ); -} '... could not unpack, authorities are different'; +}, '... could not unpack, authorities are different');