Fixed t/rpc/list.t error message regex to pass with Moose version >=1.05
Alexander Hartmaier [Mon, 2 Aug 2010 16:13:14 +0000 (18:13 +0200)]
Changes
t/rpc/list.t

diff --git a/Changes b/Changes
index c995424..70b88d5 100644 (file)
--- 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
 
index 6560c44..d71bbc5 100644 (file)
@@ -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');
     
 }