X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F00basic.t;h=8b583997d487e40c4960a5c24d1026a00f862561;hb=6d37bc628865d28297e5cf9060f5e21d1d9ec733;hp=8b0e9bc0471a53dce90dfcda12f5cc8c9fa8b957;hpb=c9dfb2d672647b67756428457b10d58a8ab18929;p=dbsrgits%2FDBIx-Class-ParameterizedJoinHack.git diff --git a/t/00basic.t b/t/00basic.t index 8b0e9bc..8b58399 100644 --- a/t/00basic.t +++ b/t/00basic.t @@ -83,12 +83,13 @@ subtest 'has_many' => sub { }; subtest 'overrides' => sub { - is $people - ->$join_with_min(19) - ->$join_with_min(29) - ->$search - ->$fetch_count, - 1, 'overridden parameter'; + like exception { + $people + ->$join_with_min(19) + ->$join_with_min(29) + ->$search + ->$fetch_count; + }, qr{once.+per.+relation}i, 'throws error'; }; subtest 'multi parameter' => sub {