Test::Deep is already required; use it instead of is_deeply
[gitmo/MooseX-Storage.git] / t / 009_do_not_serialize_lazy.t
index 527f258..3a6c9cc 100644 (file)
@@ -4,7 +4,8 @@ use strict;
 use warnings;
 
 use Test::More 'no_plan';#tests => 6;
-use Test::Exception;
+use Test::Deep;
+use Test::Fatal;
 
 BEGIN {
     use_ok('MooseX::Storage');
@@ -19,8 +20,8 @@ BEGIN {
     has 'x' => (is => 'rw', lazy_build => 1 );
     has 'y' => (is => 'rw', lazy_build => 1 );
     has 'z' => (is => 'rw', builder => '_build_z' );
-
-
+    
+    
     sub _build_x { 'x' }
     sub _build_y { 'y' }
     sub _build_z { 'z' }
@@ -37,8 +38,8 @@ is( $href->{'x'}, $$,           "       x => $$" );
 is( $href->{'z'}, 'z',          "       z => z" );
 ok( not(exists($href->{'y'})),  "       y does not exist" );
 
-is_deeply(
-    $href,
+cmp_deeply( 
+    $href, 
     { '__CLASS__' => 'Point',
       'x' => $$,
       'z' => 'z'