done_testing > no_plan
[p5sagit/strictures.git] / t / strictures.t
index 98bd177..20ca87b 100644 (file)
@@ -2,9 +2,11 @@ BEGIN { $ENV{PERL_STRICTURES_EXTRA} = 0 }
 
 sub _eval { eval $_[0] }
 
+use Test::More 0.88;
+
 use strict;
 use warnings;
-use Test::More qw(no_plan);
+use Test::More;
 
 sub capture_hints {
   my $code = shift;
@@ -62,7 +64,19 @@ eval qq{ use strictures $next; };
 like $@, qr/strictures version $next required/,
   "Can't use strictures $next (this is version $v)";
 
+eval qq{ use strictures {version => $next}; };
+
+like $@, qr/Major version specified as $next - not supported/,
+  "Can't use strictures version option $next (this is version $v)";
+
+eval qq{ use strictures {version => undef}; };
+
+like $@, qr/Major version specified as undef - not supported/,
+  "Can't use strictures version option undef";
+
 eval qq{ use strictures $strictures::VERSION; };
 
 is $@, '',
   "Can use current strictures version";
+
+done_testing;