Institute a central "load this first in testing" package
[dbsrgits/DBIx-Class.git] / t / resultset / is_ordered.t
index bab58d0..a183458 100644 (file)
@@ -1,9 +1,10 @@
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+
 use strict;
 use warnings;
 
-use lib qw(t/lib);
+
 use Test::More;
-use Test::Exception;
 use DBICTest;
 
 my $schema = DBICTest->init_schema();
@@ -37,11 +38,11 @@ ok !$rs->is_ordered, 'vanilla resultset is not ordered';
 
 # More complicated ordering
 {
-  my $ordered = $rs->search(undef, { 
+  my $ordered = $rs->search(undef, {
     order_by => [
-      { -asc => 'artistid' }, 
+      { -asc => 'artistid' },
       { -desc => 'name' },
-    ] 
+    ]
   });
   ok $ordered->is_ordered, 'more complicated resultset ordering is_ordered';
 }