Permalink
Browse files

added test for non-existent ldif file as well

  • Loading branch information...
russoz committed Nov 8, 2010
1 parent cb865fb commit 82cfee29f63a6550570fbc783dfa8de5440029f9
Showing with 4 additions and 2 deletions.
  1. +4 −2 t/02.handler.t
View
@@ -1,9 +1,10 @@
-use Test::More tests => 1;
+use Test::More tests => 2;
use Net::LDAP::SimpleServer::LDIFStore;
use Net::LDAP::SimpleServer::ProtocolHandler;
-my $store = Net::LDAP::SimpleServer::LDIFStore->new('examples/test1.ldif');
+my $store =
+ Net::LDAP::SimpleServer::LDIFStore->new('examples/single-entry.ldif');
sub _check_param {
my @p = @_;
@@ -28,3 +29,4 @@ my $obj = new_ok(
[ $store, *STDIN{IO}, *STDOUT{IO} ]
);
+check_param_failure('non/existent/file.ldif');

0 comments on commit 82cfee2

Please sign in to comment.