no get_method_map in get_method_list
[gitmo/Class-MOP.git] / t / 108_ArrayBasedStorage_test.t
index a2dc99c..f47b010 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;
 
@@ -7,8 +5,7 @@ use Test::More tests => 72;
 use File::Spec;
 use Scalar::Util 'reftype';
 
-BEGIN {
-    use_ok('Class::MOP');
+BEGIN {use Class::MOP;
     require_ok(File::Spec->catfile('examples', 'ArrayBasedStorage.pod'));
 }
 
@@ -197,4 +194,9 @@ is($baz->foo(), 'This is Bar::Baz::foo', '... Bar::Baz::foo == "This is Bar"');
 is($baz->get_bar(), 'FOO is BAR', '... Bar::Baz::bar has been initialized');
 is($baz->bling(), 'Baz::bling', '... Bar::Baz::bling has been initialized');
 
+Foo->meta->add_attribute( forgotten => is => "rw" );
+
+my $new_baz = Bar::Baz->new;
+
+cmp_ok( scalar(@$new_baz), ">", scalar(@$baz), "additional slot due to refreshed meta instance" );