Implement strict constructors, which will warn unkown constructor arguments
[gitmo/Mouse.git] / t / 050_metaclasses / 017_use_base_of_moose.t
index 2b68fd3..b8962bd 100644 (file)
@@ -9,11 +9,13 @@ use Test::Exception;
 {
     package NoOpTrait;
     use Mouse::Role;
+
+
 }
 
 {
     package Parent;
-    use Mouse -traits => 'NoOpTrait';
+    use Mouse "-traits" => 'NoOpTrait';
 
     has attr => (
         is  => 'rw',
@@ -25,12 +27,11 @@ use Test::Exception;
     package Child;
     use base 'Parent';
 }
-
 is(Child->meta->name, 'Child', "correct metaclass name");
-
 my $child = Child->new(attr => "ibute");
 ok($child, "constructor works");
 
+
 is($child->attr, "ibute", "getter inherited properly");
 
 $child->attr("ition");