X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=t%2Frpc%2Flist.t;fp=t%2Frpc%2Flist.t;h=d71bbc5d6e231caa51ea0fbd918da25bc0bee376;hp=6560c441cd5c1f1f22bb315d875208abde8b727d;hb=25448916f378e1a49bc09b898916b94b2b38cde9;hpb=3b12c2cd6893d11ca090fbd599782f0a27979922 diff --git a/t/rpc/list.t b/t/rpc/list.t index 6560c44..d71bbc5 100644 --- a/t/rpc/list.t +++ b/t/rpc/list.t @@ -140,7 +140,7 @@ my $cd_list_url = "$base/api/rpc/cd/list"; 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'); } { @@ -151,7 +151,7 @@ my $cd_list_url = "$base/api/rpc/cd/list"; 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'); }