Revert autogenerated tests. Tests should not changed radically.
[gitmo/Mouse.git] / t / 100_bugs / failing / 023_DEMOLISH_fails_without_metaclass.t
@@ -1,11 +1,7 @@
 use strict;
-# This is automatically generated by author/import-moose-test.pl.
-# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
-use t::lib::MooseCompat;
 use warnings;
 
-use Test::More;
-$TODO = q{Mouse is not yet completed};
+use Test::More tests => 2;
 use Test::Exception;
 
 {
@@ -20,21 +16,19 @@ my $object = MyClass->new;
 # Removing the metaclass simulates the case where the metaclass object
 # goes out of scope _before_ the object itself, which under normal
 # circumstances only happens during global destruction.
-Mouse::Util::remove_metaclass_by_name('MyClass');
+Class::MOP::remove_metaclass_by_name('MyClass');
 
 # The bug happened when DEMOLISHALL called
-# Mouse::Util::class_of($object) and did not get a metaclass object
+# Class::MOP::class_of($object) and did not get a metaclass object
 # back.
 lives_ok { $object->DESTROY }
 'can call DESTROY on an object without a metaclass object in the CMOP cache';
 
 
 MyClass->meta->make_immutable;
-Mouse::Util::remove_metaclass_by_name('MyClass');
+Class::MOP::remove_metaclass_by_name('MyClass');
 
 # The bug didn't manifest for immutable objects, but this test should
 # help us prevent it happening in the future.
 lives_ok { $object->DESTROY }
 'can call DESTROY on an object without a metaclass object in the CMOP cache (immutable version)';
-
-done_testing;