clean up ::Destructor
[gitmo/Moose.git] / t / 300_immutable / 013_immutable_roundtrip.t
index b43a876..a77b223 100644 (file)
@@ -4,11 +4,10 @@ use strict;
 use warnings;
 
 use Test::More;
-BEGIN {
-    eval "use Test::Output;";
-    plan skip_all => "Test::Output is required for this test" if $@;
-    plan tests => 1;
-}
+
+use Test::Requires {
+    'Test::Output' => '0.01', # skip all if not installed
+};
 
 {
     package Foo;
@@ -36,3 +35,4 @@ BEGIN {
     );
 }
 
+done_testing;