add release test for optdep pod newer than pm
Ed J [Sun, 28 Jan 2018 01:46:09 +0000 (01:46 +0000)]
xt/optdep-pod.t

index f94afb1..ea329da 100644 (file)
@@ -4,5 +4,10 @@ use strict;
 use Test::More;
 
 ok -f 'lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod', 'optdep pod present';
+cmp_ok
+ -M 'lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod' || 2 ** 15,
+ '<',
+ -M 'lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pm',
+ 'optdep pod newer than pm';
 
 done_testing;