From: Alexander Hartmaier Date: Mon, 2 Aug 2010 16:13:14 +0000 (+0200) Subject: Fixed t/rpc/list.t error message regex to pass with Moose version >=1.05 X-Git-Tag: 2.002002~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=commitdiff_plain;h=25448916f378e1a49bc09b898916b94b2b38cde9 Fixed t/rpc/list.t error message regex to pass with Moose version >=1.05 --- diff --git a/Changes b/Changes index c995424..70b88d5 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,7 @@ Revision history for Catalyst-Controller-DBIC-API: {{ $dist->version }} - Fixed search for related columns overwriting existing params in generate_column_parameters - Use column accessor for updating an existing object instead of passing the new values to update. This enables the column accessors to do additional work (for example with method modifiers). +- Fixed t/rpc/list.t error message regex to pass with Moose version >=1.05 2.002001 2010-04-01 01:41:11 Europe/Berlin 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'); }