X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F103many_to_many_warning.t;h=2c42091bff48f748860c2c5b387fb2b62aedc941;hb=dc297536f438c5bba86229471b94bd489fe06c12;hp=f2944b4462bb9ff55df16c0ac18b0df5986531f7;hpb=8d6b1478d8fa6f7c76e313ee72a72d5eb4c24d03;p=dbsrgits%2FDBIx-Class.git diff --git a/t/103many_to_many_warning.t b/t/103many_to_many_warning.t index f2944b4..2c42091 100644 --- a/t/103many_to_many_warning.t +++ b/t/103many_to_many_warning.t @@ -5,13 +5,14 @@ use Test::More; use lib qw(t/lib); use DBICTest; -plan tests => 4; my $exp_warn = qr/The many-to-many relationship 'bars' is trying to create/; { my @w; local $SIG{__WARN__} = sub { $_[0] =~ $exp_warn ? push @w, $_[0] : warn $_[0] }; my $code = gen_code ( suffix => 1 ); + + local $ENV{DBIC_OVERWRITE_HELPER_METHODS_OK}; eval "$code"; ok (! $@, 'Eval code without warnings suppression') || diag $@; @@ -101,3 +102,5 @@ use warnings; EOF } + +done_testing;