Test::Deep is already required; use it instead of is_deeply
[gitmo/MooseX-Storage.git] / t / 005_w_versions_and_authority_check.t
index 9dba061..cafb13a 100644 (file)
@@ -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');