Pass options to Class::MOP::Package->_new (fixes failing Moose tests)
Shawn M Moore [Sun, 7 Dec 2008 01:31:27 +0000 (01:31 +0000)]
lib/Class/MOP/Package.pm

index 215af61..a1e2ec4 100644 (file)
@@ -32,6 +32,7 @@ sub initialize {
     } else {
         my $meta = ( ref $class || $class )->_new({
             'package'   => $package_name,
+            %options,
         });
 
         Class::MOP::store_metaclass_by_name($package_name, $meta);