Fix tool/create-moose-compatibility-tests.pl to replace class_of()
gfx [Sat, 13 Feb 2010 05:57:26 +0000 (14:57 +0900)]
tool/create-moose-compatibility-tests.pl

index 4b8d49e..122d9fe 100644 (file)
@@ -66,6 +66,7 @@ File::Find::find(
                 };
                 $src =~ s/Mouse::(?:Util::)?is_class_loaded/Class::MOP::is_class_loaded/g;
                 $src =~ s/Mouse::(?:Util::)?load_class/Class::MOP::load_class/g;
+                $src =~ s/Mouse:::Util::class_of/Class::MOP::class_of/g;
                 $src =~ s/Mouse/Moose/g;
                 $src;
             };