One last tweak to make sure our Sub::Name-using tests _do_ run when we
[gitmo/Class-MOP.git] / t / 103_Perl6Attribute_test.t
index 8ad155c..3b14e26 100644 (file)
@@ -8,7 +8,7 @@ use File::Spec;
 
 BEGIN { 
     use_ok('Class::MOP');    
-    require_ok(File::Spec->catdir('examples', 'Perl6Attribute.pod'));
+    require_ok(File::Spec->catfile('examples', 'Perl6Attribute.pod'));
 }
 
 {
@@ -22,8 +22,8 @@ BEGIN {
     
     sub new  {
         my $class = shift;
-        bless $class->meta->construct_instance(@_) => $class;
-    }        
+        $class->meta->new_object(@_);
+    }      
 }
 
 my $foo = Foo->new();