[Bast-commits] r5832 - DBIx-Class/0.08/trunk/t
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Sun Mar 29 09:31:48 BST 2009
Author: ribasushi
Date: 2009-03-29 09:31:47 +0100 (Sun, 29 Mar 2009)
New Revision: 5832
Modified:
DBIx-Class/0.08/trunk/t/39load_namespaces_rt41083.t
Log:
detabify
Modified: DBIx-Class/0.08/trunk/t/39load_namespaces_rt41083.t
===================================================================
--- DBIx-Class/0.08/trunk/t/39load_namespaces_rt41083.t 2009-03-28 22:05:35 UTC (rev 5831)
+++ DBIx-Class/0.08/trunk/t/39load_namespaces_rt41083.t 2009-03-29 08:31:47 UTC (rev 5832)
@@ -9,26 +9,26 @@
plan tests => 6;
sub _chk_warning {
- defined $_[0]?
- $_[0] !~ qr/We found ResultSet class '([^']+)' for '([^']+)', but it seems that you had already set '([^']+)' to use '([^']+)' instead/ :
- 1
+ defined $_[0]?
+ $_[0] !~ qr/We found ResultSet class '([^']+)' for '([^']+)', but it seems that you had already set '([^']+)' to use '([^']+)' instead/ :
+ 1
}
sub _chk_extra_sources_warning {
- my $p = qr/already has a source, use register_extra_source for additional sources/;
- defined $_[0]? $_[0] !~ /$p/ : 1;
+ my $p = qr/already has a source, use register_extra_source for additional sources/;
+ defined $_[0]? $_[0] !~ /$p/ : 1;
}
my $warnings;
eval {
- local $SIG{__WARN__} = sub { $warnings .= shift };
- package DBICNSTest::RtBug41083;
- use base 'DBIx::Class::Schema';
- __PACKAGE__->load_namespaces(
- result_namespace => 'Schema_A',
- resultset_namespace => 'ResultSet_A',
- default_resultset_class => 'ResultSet'
- );
+ local $SIG{__WARN__} = sub { $warnings .= shift };
+ package DBICNSTest::RtBug41083;
+ use base 'DBIx::Class::Schema';
+ __PACKAGE__->load_namespaces(
+ result_namespace => 'Schema_A',
+ resultset_namespace => 'ResultSet_A',
+ default_resultset_class => 'ResultSet'
+ );
};
ok(!$@) or diag $@;
ok(_chk_warning($warnings), 'expected no resultset complaint');
@@ -36,14 +36,14 @@
undef $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'
- );
+ 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(_chk_warning($warnings), 'expected no resultset complaint') or diag $warnings;
More information about the Bast-commits
mailing list