And the tests prove their worth, catching a change in interface
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 30 Sep 2013 01:02:07 +0000 (14:02 +1300)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 30 Sep 2013 01:02:58 +0000 (14:02 +1300)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
t/NCIP_Handler.t

index 476e313..1b97c2f 100644 (file)
@@ -22,8 +22,9 @@ use Test::More tests => 3;    # last test to print
 use lib 'lib';
 
 use_ok('NCIP::Handler');
+my $namespace='http://test';
 
 my $type = 'LookupItem';
 
-ok( my $handler = NCIP::Handler->new($type), 'Create new handler' );
+ok( my $handler = NCIP::Handler->new($namespace, $type), 'Create new handler' );
 ok( my $response = $handler->handle() );