[Bast-commits] r9363 - in
DBIx-Class/0.08/branches/dbicadmin-non-versioned/t: admin
dbicadmin-test-include/lib
edenc at dev.catalyst.perl.org
edenc at dev.catalyst.perl.org
Fri May 14 02:03:21 GMT 2010
Author: edenc
Date: 2010-05-14 03:03:21 +0100 (Fri, 14 May 2010)
New Revision: 9363
Modified:
DBIx-Class/0.08/branches/dbicadmin-non-versioned/t/admin/10script.t
DBIx-Class/0.08/branches/dbicadmin-non-versioned/t/dbicadmin-test-include/lib/Foo.pm
Log:
testing dbicadmin/DBIx::Class::Admin integration
Modified: DBIx-Class/0.08/branches/dbicadmin-non-versioned/t/admin/10script.t
===================================================================
--- DBIx-Class/0.08/branches/dbicadmin-non-versioned/t/admin/10script.t 2010-05-14 02:03:00 UTC (rev 9362)
+++ DBIx-Class/0.08/branches/dbicadmin-non-versioned/t/admin/10script.t 2010-05-14 02:03:21 UTC (rev 9363)
@@ -16,7 +16,7 @@
}
my @json_backends = qw/XS JSON DWIW/;
-my $tests_per_run = 5;
+my $tests_per_run = 6;
plan tests => $tests_per_run * @json_backends;
@@ -29,6 +29,11 @@
$ENV{JSON_ANY_ORDER} = $js;
eval { test_dbicadmin () };
diag $@ if $@;
+
+ # test the script is setting @INC properly
+ like(`script/dbicadmin -It/dbicadmin-test-include/lib --schema=Foo --op=deploy --connect=[] --debug`,
+ qr|Adding to \@INC:\nt/dbicadmin-test-include/lib|
+ );
}
}
Modified: DBIx-Class/0.08/branches/dbicadmin-non-versioned/t/dbicadmin-test-include/lib/Foo.pm
===================================================================
--- DBIx-Class/0.08/branches/dbicadmin-non-versioned/t/dbicadmin-test-include/lib/Foo.pm 2010-05-14 02:03:00 UTC (rev 9362)
+++ DBIx-Class/0.08/branches/dbicadmin-non-versioned/t/dbicadmin-test-include/lib/Foo.pm 2010-05-14 02:03:21 UTC (rev 9363)
@@ -1,7 +1,9 @@
package Foo;
+use base 'DBIx::Class::Schema';
our $loaded = 1;
+our $deploy = 0;
+sub connect { bless {}, 'Foo' }
+sub deploy {$deploy = 1}
-sub connect {}
-
1;
More information about the Bast-commits
mailing list