Skip to content

Commit

Permalink
Fix test for init() value
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 13, 2024
1 parent 1d85f41 commit c84fb05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Revision history for Genealogy::ObituaryDailyTimes
0.13
search() can now just take one parameter which is the last name
Added CircleCI, Coveralls and Codecov
Fix test for init() value

0.12 Wed Jun 19 21:01:56 EDT 2024
t/carp.t could sometimes fail
Expand Down
2 changes: 1 addition & 1 deletion lib/Genealogy/ObituaryDailyTimes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sub new {
return bless { %{$class}, %args }, ref($class);
}

my $directory = $args{'directory'} || $Database::Abstraction->{'directory'};
my $directory = $args{'directory'} || $Database::Abstraction{'defaults'}{'directory'};
if(!defined($directory)) {
# If the directory argument isn't given, see if we can find the data
$directory = Module::Info->new_from_loaded(__PACKAGE__)->file();
Expand Down
2 changes: 1 addition & 1 deletion t/10-new.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use Test::Most tests => 4;
use_ok('Genealogy::ObituaryDailyTimes');

if($ENV{'NO_NETWORK_TESTING'}) {
Database::Abstraction::init(directory => '/tmp');
Database::Abstraction::init({ directory => '/tmp' });
}

isa_ok(Genealogy::ObituaryDailyTimes->new(), 'Genealogy::ObituaryDailyTimes', 'Creating Genealogy::ObituaryDailyTimes object');
Expand Down

0 comments on commit c84fb05

Please sign in to comment.