[Catalyst-commits] r14008 - in Catalyst-Model-DBIC-Schema/trunk: . t

caelum at dev.catalyst.perl.org caelum at dev.catalyst.perl.org
Wed May 11 04:59:45 GMT 2011


Author: caelum
Date: 2011-05-11 04:59:45 +0000 (Wed, 11 May 2011)
New Revision: 14008

Modified:
   Catalyst-Model-DBIC-Schema/trunk/Changes
   Catalyst-Model-DBIC-Schema/trunk/t/08helper.t
Log:
fix regex stringification test for perl 5.14 (RT#68098)

Modified: Catalyst-Model-DBIC-Schema/trunk/Changes
===================================================================
--- Catalyst-Model-DBIC-Schema/trunk/Changes	2011-04-29 12:50:12 UTC (rev 14007)
+++ Catalyst-Model-DBIC-Schema/trunk/Changes	2011-05-11 04:59:45 UTC (rev 14008)
@@ -1,5 +1,7 @@
 Revision history for Perl extension Catalyst::Model::DBIC::Schema
 
+        - fix regex stringification test for perl 5.14 (RT#68098)
+
 0.48  Thu Dec  9 21:08:33 UTC 2010
         - fix usage of Try::Tiny in helper
 

Modified: Catalyst-Model-DBIC-Schema/trunk/t/08helper.t
===================================================================
--- Catalyst-Model-DBIC-Schema/trunk/t/08helper.t	2011-04-29 12:50:12 UTC (rev 14007)
+++ Catalyst-Model-DBIC-Schema/trunk/t/08helper.t	2011-05-11 04:59:45 UTC (rev 14008)
@@ -73,11 +73,12 @@
 is_deeply $i->components, ['InflateColumn::DateTime', 'TimeStamp', 'Foo'],
     'two extra components';
 
+my $flags = qr// =~ /\^/ ? '^' : "-xism";
 $i = instance(args => [$static, q{constraint=^(foo|bar)$}]);
 is $i->loader_args->{constraint}, qr/^(foo|bar)$/,
     'constraint loader arg';
 is $i->helper->{loader_args}{constraint},
-    q{qr/(?-xism:^(foo|bar)$)/},
+    qq{qr/(?$flags:^(foo|bar)\$)/},
     'constraint loader arg as string';
 
 $i = instance(args => [$static, q{exclude=^(foo|bar)$}]);




More information about the Catalyst-commits mailing list