getting close to a 0.07 release
[gitmo/Class-MOP.git] / t / 104_AttributesWithHistory_test.t
index ada9d67..c83c950 100644 (file)
@@ -13,8 +13,7 @@ BEGIN {
 
 {
     package Foo;
-    
-    use Class::MOP 'meta';
+    use metaclass;
     
     Foo->meta->add_attribute(AttributesWithHistory->new('foo' => (
         accessor         => 'foo',
@@ -29,8 +28,8 @@ BEGIN {
     
     sub new  {
         my $class = shift;
-        bless $class->meta->construct_instance(@_) => $class;
-    }        
+        $class->meta->new_object(@_);
+    }   
 }
 
 my $foo = Foo->new();