X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F86might_have.t;h=f656802f4aa6f461748186fa8aac07563864e671;hb=b83736a7d3235d2f50fe5695550eb3637432d960;hp=05ba5390dbdbe8d207502563a235426a55260b37;hpb=49eeb48de3d8ff685926b595fa0f3f5e680eaee2;p=dbsrgits%2FDBIx-Class.git diff --git a/t/86might_have.t b/t/86might_have.t index 05ba539..f656802 100644 --- a/t/86might_have.t +++ b/t/86might_have.t @@ -1,9 +1,11 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; use Test::Warn; -use lib qw(t/lib); + use DBICTest; my $schema = DBICTest->init_schema(); @@ -38,7 +40,7 @@ warning_like { { "foreign.id" => "self.link" }, ); } - qr{"might_have/has_one" must not be on columns with is_nullable set to true}, + qr{'might_have'/'has_one' must not be used on columns with is_nullable set to true}, 'might_have should warn if the self.id column is nullable'; {