Convert all tests to done_testing.
[gitmo/Moose.git] / t / 010_basics / 009_import_unimport.t
index 7aef23a..fcf15d0 100644 (file)
@@ -3,17 +3,16 @@
 use strict;
 use warnings;
 
-use Test::More tests => 46;
+use Test::More;
 
 
 my @moose_exports = qw(
-    extends with 
-    has 
+    extends with
+    has
     before after around
     override
     augment
     super inner
-    make_immutable
 );
 
 {
@@ -37,8 +36,8 @@ ok(!Foo->can($_), '... Foo can no longer do ' . $_) for @moose_exports;
 # and check the type constraints as well
 
 my @moose_type_constraint_exports = qw(
-    type subtype as where message 
-    coerce from via 
+    type subtype as where message
+    coerce from via
     enum
     find_type_constraint
 );
@@ -61,3 +60,16 @@ can_ok('Bar', $_) for @moose_type_constraint_exports;
 
 ok(!Bar->can($_), '... Bar can no longer do ' . $_) for @moose_type_constraint_exports;
 
+
+{
+    package Baz;
+
+    use Scalar::Util qw( blessed );
+    use Moose;
+
+    no Moose;
+}
+
+can_ok( 'Baz', 'blessed' );
+
+done_testing;