Checking in changes prior to tagging of version 0.77.
[gitmo/Mouse.git] / t / 001_mouse / 028-subclass-attr.t
index 27abb63..35430a5 100644 (file)
@@ -34,7 +34,7 @@ do {
     extends qw(CB CA);
     has cc => (is => 'rw');
 };
-with_immutable sub {
+with_immutable {
     my $obj = Child->new(class => 1, child => 1);
     ok($obj->child, "local attribute set in constructor");
     ok($obj->class, "inherited attribute set in constructor");
@@ -50,7 +50,7 @@ with_immutable sub {
         CA->meta->get_attribute('ca'),
         Class->meta->get_attribute('class'),
     )], "correct get_all_attributes");
-}, qw(Class CA CB CC);
+} 'Class', 'CA', 'CB', 'CC';
 
 do {
     package Foo;
@@ -90,7 +90,7 @@ with_immutable {
     is_deeply([Bar->meta->get_all_attributes], [
         Bar->meta->get_attribute('attr'),
     ], "correct get_all_attributes");
-} qw(Foo Bar);
+} 'Foo', 'Bar';
 
 done_testing;