};
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 {