[Bast-commits] r5167 - in DBIx-Class/0.08/branches: .
rt_bug_41083/t rt_bug_41083/t/lib/DBICNSTest
rt_bug_41083/t/lib/DBICNSTest/RtBug41083
rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet
rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema
rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo
jmmills at dev.catalyst.perl.org
jmmills at dev.catalyst.perl.org
Thu Nov 20 12:45:48 GMT 2008
Author: jmmills
Date: 2008-11-20 12:45:48 +0000 (Thu, 20 Nov 2008)
New Revision: 5167
Added:
DBIx-Class/0.08/branches/rt_bug_41083/
DBIx-Class/0.08/branches/rt_bug_41083/t/39load_namespaces_rt41083.t
DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/
DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet.pm
DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet/
DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet/Foo.pm
DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/
DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo.pm
DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo/
DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo/Sub.pm
Log:
Test written.
Currently fails.
Copied: DBIx-Class/0.08/branches/rt_bug_41083 (from rev 5159, DBIx-Class/0.08/trunk)
Added: DBIx-Class/0.08/branches/rt_bug_41083/t/39load_namespaces_rt41083.t
===================================================================
--- DBIx-Class/0.08/branches/rt_bug_41083/t/39load_namespaces_rt41083.t (rev 0)
+++ DBIx-Class/0.08/branches/rt_bug_41083/t/39load_namespaces_rt41083.t 2008-11-20 12:45:48 UTC (rev 5167)
@@ -0,0 +1,27 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use Test::More;
+
+use lib 't/lib';
+
+plan tests => 2;
+
+my $warnings;
+eval {
+ local $SIG{__WARN__} = sub { $warnings .= shift };
+ package DBICNSTest::RtBug41083;
+ use base 'DBIx::Class::Schema';
+ __PACKAGE__->load_namespaces(
+ result_namespace => 'Schema',
+ resultset_namespace => 'ResultSet',
+ default_resultset_class => 'ResultSet'
+ );
+};
+ok(!$@) or diag $@;
+ok(
+ $warnings !~
+ qr/We found ResultSet class '([^']+)' for '([^']+)', but it seems that you had already set '([^']+)' to use '([^']+)' instead/,
+ 'Proxy sub class did not generate an error'
+);
Added: DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet/Foo.pm
===================================================================
--- DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet/Foo.pm (rev 0)
+++ DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet/Foo.pm 2008-11-20 12:45:48 UTC (rev 5167)
@@ -0,0 +1,5 @@
+package DBICNSTest::RtBug41083::ResultSet::Foo;
+use strict;
+use warnings;
+use base 'DBICNSTest::RtBug41083::ResultSet';
+1;
Added: DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet.pm (rev 0)
+++ DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/ResultSet.pm 2008-11-20 12:45:48 UTC (rev 5167)
@@ -0,0 +1,5 @@
+package DBICNSTest::RtBug41083::ResultSet;
+use strict;
+use warnings;
+use base 'DBIx::Class::ResultSet';
+1;
Added: DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo/Sub.pm
===================================================================
--- DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo/Sub.pm (rev 0)
+++ DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo/Sub.pm 2008-11-20 12:45:48 UTC (rev 5167)
@@ -0,0 +1,5 @@
+package DBICNSTest::RtBug41083::Schema::Foo::Sub;
+use strict;
+use warnings;
+use base 'DBICNSTest::RtBug41083::Schema::Foo';
+1;
Added: DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo.pm
===================================================================
--- DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo.pm (rev 0)
+++ DBIx-Class/0.08/branches/rt_bug_41083/t/lib/DBICNSTest/RtBug41083/Schema/Foo.pm 2008-11-20 12:45:48 UTC (rev 5167)
@@ -0,0 +1,8 @@
+package DBICNSTest::RtBug41083::Schema::Foo;
+use strict;
+use warnings;
+use base 'DBIx::Class';
+__PACKAGE__->load_components('Core');
+__PACKAGE__->table('foo');
+__PACKAGE__->add_columns('foo');
+1;
More information about the Bast-commits
mailing list