Only load DBICTest::Schema when needed in tests
[dbsrgits/DBIx-Class.git] / t / 103many_to_many_warning.t
index 9e5c19a..2dcc271 100644 (file)
@@ -4,8 +4,8 @@ use Test::More;
 
 use lib qw(t/lib);
 use DBICTest;
+use DBICTest::Schema;
 
-plan tests => 4;
 my $exp_warn = qr/The many-to-many relationship 'bars' is trying to create/;
 
 {
@@ -103,3 +103,5 @@ use warnings;
 EOF
 
 }
+
+done_testing;