Revert "add a warning for immutablizing a class with mutable ancestors"
[gitmo/Moose.git] / t / 300_immutable / 005_multiple_demolish_inline.t
index 24b110a..c1e509a 100644 (file)
@@ -28,13 +28,6 @@ use Test::Exception;
 }
 
 lives_ok {
-    Foo->meta->make_immutable;
-} 'Foo->meta->make_immutable';
-
-is( Foo->meta->get_method('DESTROY')->package_name, 'Foo',
-    'Foo has a DESTROY method in the Foo class (not inherited)' );
-
-lives_ok {
     Bar->new();
 } 'Bar->new()';
 
@@ -44,3 +37,10 @@ lives_ok {
 
 is( Bar->meta->get_method('DESTROY')->package_name, 'Bar',
     'Bar has a DESTROY method in the Bar class (not inherited)' );
+
+lives_ok {
+    Foo->meta->make_immutable;
+} 'Foo->meta->make_immutable';
+
+is( Foo->meta->get_method('DESTROY')->package_name, 'Foo',
+    'Foo has a DESTROY method in the Bar class (not inherited)' );