fix for prototype undecl issue when type constraint utils loaded before consumers...
[gitmo/Moose.git] / t / 006_recipe.t
index 514444b..5b8f9d2 100644 (file)
@@ -14,8 +14,6 @@ BEGIN {
 
 {
     package Eq;
-    use strict;
-    use warnings;
     use Moose::Role;
     
     requires 'equal_to';
@@ -26,8 +24,6 @@ BEGIN {
     }
     
     package Comparable;
-    use strict;
-    use warnings;
     use Moose::Role;
     
     with 'Eq';
@@ -60,8 +56,6 @@ BEGIN {
     }  
     
     package Printable;
-    use strict;
-    use warnings;
     use Moose::Role;
     
     requires 'to_string';    
@@ -71,8 +65,6 @@ BEGIN {
 
 {
     package US::Currency;
-    use strict;
-    use warnings;
     use Moose;
     
     with 'Comparable', 'Printable';
@@ -88,6 +80,8 @@ BEGIN {
         my $self = shift;
         sprintf '$%0.2f USD' => $self->amount
     }
+    
+    __PACKAGE__->meta->make_immutable(debug => 0);
 }
 
 ok(US::Currency->does('Comparable'), '... US::Currency does Comparable');