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/05_product.t

    r6584 r6595  
    33# Copyright (C) 2006  Joshua Hoblitt
    44#
    5 # $Id: 05_product.t,v 1.2 2006-03-14 23:24:05 jhoblitt Exp $
     5# $Id: 05_product.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 => 21;
     12use Test::More tests => 22;
    1313
    1414=head1 NAME
     
    166166# cleanup HTTP server
    167167kill 9, $pid;
     168
     169eval {
     170    my $dsp = DataStore::Product->new( uri => 'http://example.org/' );
     171
     172    $dsp->request( foo => 1 );
     173};
     174like($@, qr/not listed in the validation options/,
     175    '->request() fails whe passed extra params');
Note: See TracChangeset for help on using the changeset viewer.