[Bast-commits] r5394 - DBIx-Class/0.08/trunk/t
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Sun Feb 1 22:44:40 GMT 2009
Author: ribasushi
Date: 2009-02-01 22:44:39 +0000 (Sun, 01 Feb 2009)
New Revision: 5394
Modified:
DBIx-Class/0.08/trunk/t/89dbicadmin.t
Log:
Fix the dbicadmin test for good (take 2)
Modified: DBIx-Class/0.08/trunk/t/89dbicadmin.t
===================================================================
--- DBIx-Class/0.08/trunk/t/89dbicadmin.t 2009-02-01 21:33:32 UTC (rev 5393)
+++ DBIx-Class/0.08/trunk/t/89dbicadmin.t 2009-02-01 22:44:39 UTC (rev 5394)
@@ -51,11 +51,15 @@
system( _prepare_system_args( qw|--op=insert --set={"name":"Aran"}| ) );
- open(my $fh, "-|", _prepare_system_args( qw|--op=select --attrs={"order_by":"name"}| ) ) or die $!;
- my $data = do { local $/; <$fh> };
- close($fh);
- ok( ($data=~/Aran.*Trout/s), "$ENV{JSON_ANY_ORDER}: select with attrs" );
+ SKIP: {
+ skip ("MSWin32 doesn't support -| either", 1) if $^O eq 'MSWin32';
+ open(my $fh, "-|", _prepare_system_args( qw|--op=select --attrs={"order_by":"name"}| ) ) or die $!;
+ my $data = do { local $/; <$fh> };
+ close($fh);
+ ok( ($data=~/Aran.*Trout/s), "$ENV{JSON_ANY_ORDER}: select with attrs" );
+ }
+
system( _prepare_system_args( qw|--op=delete --where={"name":"Trout"}| ) );
ok( ($employees->count()==1), "$ENV{JSON_ANY_ORDER}: delete" );
}
More information about the Bast-commits
mailing list