[Catalyst-commits] r12808 - in Catalyst-Model-DBIC-Schema/trunk: .
lib/Catalyst/Helper/Model/DBIC lib/Catalyst/Model/DBIC t
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Thu Feb 4 04:13:23 GMT 2010
Author: caelum
Date: 2010-02-04 04:13:19 +0000 (Thu, 04 Feb 2010)
New Revision: 12808
Modified:
Catalyst-Model-DBIC-Schema/trunk/Changes
Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Helper/Model/DBIC/Schema.pm
Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Model/DBIC/Schema.pm
Catalyst-Model-DBIC-Schema/trunk/t/08helper.t
Log:
add test for on_connect_do=string parsing in helper, release
Modified: Catalyst-Model-DBIC-Schema/trunk/Changes
===================================================================
--- Catalyst-Model-DBIC-Schema/trunk/Changes 2010-02-04 03:57:55 UTC (rev 12807)
+++ Catalyst-Model-DBIC-Schema/trunk/Changes 2010-02-04 04:13:19 UTC (rev 12808)
@@ -1,5 +1,8 @@
Revision history for Perl extension Catalyst::Model::DBIC::Schema
+0.40 Wed Feb 3 23:12:16 EST 2010
+ - fix Replicated trait deps
+
0.39 Mon Feb 1 10:08:51 EST 2010
- better 'on_connect_do' parsing in Helper
Modified: Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Helper/Model/DBIC/Schema.pm
===================================================================
--- Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Helper/Model/DBIC/Schema.pm 2010-02-04 03:57:55 UTC (rev 12807)
+++ Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Helper/Model/DBIC/Schema.pm 2010-02-04 04:13:19 UTC (rev 12808)
@@ -4,7 +4,7 @@
use Moose;
no warnings 'uninitialized';
-our $VERSION = '0.39';
+our $VERSION = '0.40';
$VERSION = eval $VERSION;
use Carp;
Modified: Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Model/DBIC/Schema.pm
===================================================================
--- Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Model/DBIC/Schema.pm 2010-02-04 03:57:55 UTC (rev 12807)
+++ Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Model/DBIC/Schema.pm 2010-02-04 04:13:19 UTC (rev 12808)
@@ -5,7 +5,7 @@
extends 'Catalyst::Model';
with 'CatalystX::Component::Traits';
-our $VERSION = '0.39';
+our $VERSION = '0.40';
$VERSION = eval $VERSION;
use namespace::autoclean;
Modified: Catalyst-Model-DBIC-Schema/trunk/t/08helper.t
===================================================================
--- Catalyst-Model-DBIC-Schema/trunk/t/08helper.t 2010-02-04 03:57:55 UTC (rev 12807)
+++ Catalyst-Model-DBIC-Schema/trunk/t/08helper.t 2010-02-04 04:13:19 UTC (rev 12808)
@@ -10,7 +10,6 @@
use Storable 'dclone';
eval "use Catalyst::Helper";
plan skip_all => 'Catalyst::Helper required for tests' if $@;
-plan tests => 41;
my $helper = Catalyst::Helper->new;
$helper->{base} = $Bin;
@@ -118,6 +117,16 @@
'connect_info name_sep as string';
$i = instance(args => [
+ $static, $sqlite, 'on_connect_do=PRAGMA foreign_keys = ON'
+]);
+
+is $i->connect_info->{on_connect_do},
+ 'PRAGMA foreign_keys = ON', 'on_connect_do string';
+
+is $i->helper->{connect_info}{on_connect_do},
+ 'q{PRAGMA foreign_keys = ON}', 'on_connect_do string as string';
+
+$i = instance(args => [
$static, 'components=TimeStamp', $sqlite, '', $on_connect_do,
$quote_char, $name_sep
]);
@@ -156,6 +165,8 @@
is $i->helper->{connect_info}{AutoCommit}, 'q{0}',
'connect_info arg from extra hash as string';
+done_testing;
+
sub instance {
Catalyst::Helper::Model::DBIC::Schema->new(
schema_class => 'AnotherSchemaClass',
More information about the Catalyst-commits
mailing list