cmp_ok( $mech->status, '==', 400, 'non numeric list_page request not okay' );
my $response = JSON::Any->Load( $mech->content);
is($response->{success}, 'false', 'correct data returned');
- like($response->{messages}->[0], qr/Attribute \(page\) does not pass the type constraint because: Validation failed for 'Int' failed with value fgdg/, 'correct data returned');
+ like($response->{messages}->[0], qr/Attribute \(page\) does not pass the type constraint because: Validation failed for 'Int' (failed )?with value fgdg/, 'correct data returned');
}
{
cmp_ok( $mech->status, '==', 400, 'non numeric list_count request not okay' );
my $response = JSON::Any->Load( $mech->content);
is($response->{success}, 'false', 'correct data returned');
- like($response->{messages}->[0], qr/Attribute \(count\) does not pass the type constraint because: Validation failed for 'Int' failed with value sdsdf/, 'correct data returned');
+ like($response->{messages}->[0], qr/Attribute \(count\) does not pass the type constraint because: Validation failed for 'Int' (failed )?with value sdsdf/, 'correct data returned');
}