From: Peter Rabbitson Date: Sun, 21 Dec 2008 08:26:19 +0000 (+0000) Subject: Fix ordering of 'use lib' and 'use' in tests X-Git-Tag: v0.08240~189^2~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c61a0748004eaaeb8207dc8a933ed5213ccce3e6;p=dbsrgits%2FDBIx-Class.git Fix ordering of 'use lib' and 'use' in tests --- diff --git a/t/19quotes.t b/t/19quotes.t index 6bd8acf..d8ba469 100644 --- a/t/19quotes.t +++ b/t/19quotes.t @@ -3,6 +3,8 @@ use warnings; use Test::More; use IO::File; + +use lib qw(t/lib); use DBIC::SqlMakerTest; BEGIN { @@ -12,7 +14,6 @@ BEGIN { : ( tests => 7 ); } -use lib qw(t/lib); use_ok('DBICTest'); use_ok('DBIC::DebugObj'); diff --git a/t/19quotes_newstyle.t b/t/19quotes_newstyle.t index 1290e11..748b112 100644 --- a/t/19quotes_newstyle.t +++ b/t/19quotes_newstyle.t @@ -3,6 +3,8 @@ use warnings; use Test::More; use IO::File; + +use lib qw(t/lib); use DBIC::SqlMakerTest; BEGIN { @@ -12,8 +14,6 @@ BEGIN { : ( tests => 7 ); } -use lib qw(t/lib); - use_ok('DBICTest'); use_ok('DBIC::DebugObj'); diff --git a/t/41orrible.t b/t/41orrible.t index 030dabc..660ee40 100644 --- a/t/41orrible.t +++ b/t/41orrible.t @@ -2,10 +2,11 @@ use strict; use warnings; use Test::More; -#use DBIx::Class::Storage::DBI; -use DBIC::SqlMakerTest; use DBIx::Class::Storage::DBI::Oracle::WhereJoins; +use lib qw(t/lib); +use DBIC::SqlMakerTest; + plan tests => 4; my $sa = new DBIC::SQL::Abstract::Oracle; diff --git a/t/95sql_maker.t b/t/95sql_maker.t index 574e953..531920d 100644 --- a/t/95sql_maker.t +++ b/t/95sql_maker.t @@ -2,8 +2,9 @@ use strict; use warnings; use Test::More; -use DBIC::SqlMakerTest; +use lib qw(t/lib); +use DBIC::SqlMakerTest; BEGIN { eval "use DBD::SQLite"; diff --git a/t/95sql_maker_quote.t b/t/95sql_maker_quote.t index eab86cb..8e8f582 100644 --- a/t/95sql_maker_quote.t +++ b/t/95sql_maker_quote.t @@ -2,8 +2,9 @@ use strict; use warnings; use Test::More; -use DBIC::SqlMakerTest; +use lib qw(t/lib); +use DBIC::SqlMakerTest; BEGIN { eval "use DBD::SQLite";