Try Schwern's latest Test::Builder offering on a stock perl and a threaded blead
[dbsrgits/DBIx-Class.git] / t / sqlmaker / oracle.t
index 9491d6e..69234f9 100644 (file)
@@ -1,15 +1,23 @@
 use strict;
 use warnings;
 use Test::More;
+
+BEGIN {
+  require DBIx::Class::Optional::Dependencies;
+  plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('id_shortener')
+    unless DBIx::Class::Optional::Dependencies->req_ok_for ('id_shortener');
+}
+
 use Test::Exception;
 use Data::Dumper::Concise;
 use lib qw(t/lib);
+use DBICTest;
 use DBIC::SqlMakerTest;
 use DBIx::Class::SQLMaker::Oracle;
 
 #
-#  Offline test for connect_by 
-#  ( without acitve database connection)
+#  Offline test for connect_by
+#  ( without active database connection)
 #
 my @handle_tests = (
     {
@@ -36,7 +44,7 @@ my @handle_tests = (
         bind        => ['King'],
         msg         => 'oracle.com example #1',
     },
-    # CONNECT BY PRIOR employee_id = manager_id and 
+    # CONNECT BY PRIOR employee_id = manager_id and
     #            PRIOR account_mgr_id = customer_id ...
     {
         connect_by  => {