IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 15, 2006, 12:06:58 PM (20 years ago)
Author:
jhoblitt
Message:

test that ->requset() doesn't accept any params

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/t/06_fileset.t

    r6587 r6595  
    33# Copyright (C) 2006  Joshua Hoblitt
    44#
    5 # $Id: 06_fileset.t,v 1.2 2006-03-15 03:18:25 jhoblitt Exp $
     5# $Id: 06_fileset.t,v 1.3 2006-03-15 22:06:58 jhoblitt Exp $
    66
    77use strict;
     
    1010use lib qw( ./lib ./t );
    1111
    12 use Test::More tests => 17;
     12use Test::More tests => 18;
    1313
    1414=head1 NAME
     
    151151# cleanup HTTP server
    152152kill 9, $pid;
     153
     154eval {
     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};
     164like($@, 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.