From 727706095e76267495ecd0eeef9b6ed774331228 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 28 Aug 2013 14:56:29 +1200 Subject: [PATCH] Fixing the tests so they can run with prove --- t/NCIPServer.t | 3 ++- t/NCIP_Configuration.t | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/t/NCIPServer.t b/t/NCIPServer.t index 1928ff1..b0dae14 100644 --- a/t/NCIPServer.t +++ b/t/NCIPServer.t @@ -2,11 +2,12 @@ use strict; use warnings; +use lib 'lib'; use Test::More tests => 2; BEGIN { use_ok('NCIPServer') }; -ok(my $server = NCIPServer->new({config_dir => '../t/config_sample'})); +ok(my $server = NCIPServer->new({config_dir => 't/config_sample'})); # use Data::Dumper; # print Dumper $server; diff --git a/t/NCIP_Configuration.t b/t/NCIP_Configuration.t index a9ca54f..99fda20 100644 --- a/t/NCIP_Configuration.t +++ b/t/NCIP_Configuration.t @@ -18,12 +18,13 @@ use strict; use warnings; use Sys::Syslog; +use lib 'lib'; use Test::More tests => 5; # last test to print use_ok('NCIP::Configuration'); -ok( my $config = NCIP::Configuration->new('../t/config_sample'), +ok( my $config = NCIP::Configuration->new('t/config_sample'), 'Creating a config object' ); # because the file is called NCIP.xml we now have that namespace -- 2.43.2