Changeset 6595
- Timestamp:
- Mar 15, 2006, 12:06:58 PM (20 years ago)
- Location:
- trunk/DataStore/t
- Files:
-
- 2 edited
-
05_product.t (modified) (3 diffs)
-
06_fileset.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/t/05_product.t
r6584 r6595 3 3 # Copyright (C) 2006 Joshua Hoblitt 4 4 # 5 # $Id: 05_product.t,v 1. 2 2006-03-14 23:24:05jhoblitt Exp $5 # $Id: 05_product.t,v 1.3 2006-03-15 22:06:58 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use lib qw( ./lib ./t ); 11 11 12 use Test::More tests => 2 1;12 use Test::More tests => 22; 13 13 14 14 =head1 NAME … … 166 166 # cleanup HTTP server 167 167 kill 9, $pid; 168 169 eval { 170 my $dsp = DataStore::Product->new( uri => 'http://example.org/' ); 171 172 $dsp->request( foo => 1 ); 173 }; 174 like($@, qr/not listed in the validation options/, 175 '->request() fails whe passed extra params'); -
trunk/DataStore/t/06_fileset.t
r6587 r6595 3 3 # Copyright (C) 2006 Joshua Hoblitt 4 4 # 5 # $Id: 06_fileset.t,v 1. 2 2006-03-15 03:18:25jhoblitt Exp $5 # $Id: 06_fileset.t,v 1.3 2006-03-15 22:06:58 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use lib qw( ./lib ./t ); 11 11 12 use Test::More tests => 1 7;12 use Test::More tests => 18; 13 13 14 14 =head1 NAME … … 151 151 # cleanup HTTP server 152 152 kill 9, $pid; 153 154 eval { 155 my $dsf = DataStore::FileSet->new( 156 uri => 'http://example.org/', 157 fileset => '12buckelyourshoe', 158 datetime => '2042-01-01T00:00:00Z', 159 type => 'foo', 160 ); 161 162 $dsf->request( foo => 1 ); 163 }; 164 like($@, qr/not listed in the validation options/, 165 '->request() fails whe passed extra params'); 166
Note:
See TracChangeset
for help on using the changeset viewer.
