adding in version and authority checks
[gitmo/MooseX-Storage.git] / t / 001_basic.t
index ea761ab..91848c2 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More no_plan => 1;
+use Test::More tests => 11;
 
 BEGIN {
     use_ok('MooseX::Storage');
@@ -15,7 +15,7 @@ BEGIN {
     use Moose;
     use MooseX::Storage;
 
-    with Storage();
+    with Storage;
 
     has 'number' => ( is => 'ro', isa => 'Int' );
     has 'string' => ( is => 'ro', isa => 'Str' );
@@ -39,14 +39,14 @@ BEGIN {
     is_deeply(
         $foo->pack,
         {
-            __class__ => 'Foo',
+            __CLASS__ => 'Foo',
             number    => 10,
             string    => 'foo',
             float     => 10.5,
             array     => [ 1 .. 10 ],
             hash      => { map { $_ => undef } ( 1 .. 10 ) },
             object    => { 
-                            __class__ => 'Foo',                
+                            __CLASS__ => 'Foo',                
                             number    => 2 
                          },            
         },
@@ -57,14 +57,14 @@ BEGIN {
 {
     my $foo = Foo->unpack(
         {
-            __class__ => 'Foo',
+            __CLASS__ => 'Foo',
             number    => 10,
             string    => 'foo',
             float     => 10.5,
             array     => [ 1 .. 10 ],
             hash      => { map { $_ => undef } ( 1 .. 10 ) },
             object    => { 
-                            __class__ => 'Foo',                
+                            __CLASS__ => 'Foo',                
                             number    => 2 
                          },            
         }