Skip to content

Commit

Permalink
added test for non-existent ldif file as well
Browse files Browse the repository at this point in the history
  • Loading branch information
russoz committed Nov 8, 2010
1 parent cb865fb commit 82cfee2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/02.handler.t
@@ -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 = @_;
Expand All @@ -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.