(internal) Introduce an extra utility function, essentially a ( >= , < ) test
[dbsrgits/DBIx-Class.git] / t / inflate / hri.t
index d027e26..b5e9d2f 100644 (file)
@@ -2,6 +2,14 @@ use strict;
 use warnings;
 
 use Test::More;
+
+use DBIx::Class::_Util 'modver_gt_or_eq_and_lt';
+use base();
+BEGIN {
+  plan skip_all => 'base.pm 2.20 (only present in perl 5.19.7) is known to break this test'
+    if modver_gt_or_eq_and_lt( 'base', '2.19_01', '2.21' );
+}
+
 use Test::Exception;
 use lib qw(t/lib);
 use DBICTest;
@@ -40,6 +48,7 @@ my $schema = DBICTest->init_schema();
       [ sort $rs->result_source->columns ],
       'returned correct columns',
     );
+    $hri_rs->reset;
 
     $cd = $hri_rs->find ({cdid => 1});
     is_deeply ( $cd, $datahashref1, 'first/find return the same thing (result_class attr propagates)');