diff options
Diffstat (limited to 't')
-rw-r--r-- | t/02_parsing.t | 2 | ||||
-rw-r--r-- | t/03_timespec.t | 2 | ||||
-rw-r--r-- | t/04_find_archives.t | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/t/02_parsing.t b/t/02_parsing.t index 9ff0a5c..8f3bcfb 100644 --- a/t/02_parsing.t +++ b/t/02_parsing.t @@ -27,7 +27,7 @@ $borg->mock('list_archive', sub { } ); # Call the actual function we want to test -my $app = App::BorgRestore->new({}, {borg => $borg, db => $db}); +my $app = App::BorgRestore->new({borg => $borg, db => $db}); $app->handle_added_archives(['archive-1'], $db); # Check if $db->add_path has been called properly diff --git a/t/03_timespec.t b/t/03_timespec.t index 250ce9f..ae1b1e5 100644 --- a/t/03_timespec.t +++ b/t/03_timespec.t @@ -5,7 +5,7 @@ use Test::More; use App::BorgRestore; -my $app = App::BorgRestore->new_no_defaults({}, undef); +my $app = App::BorgRestore->new_no_defaults(undef); is($app->timespec_to_seconds('5s'), 5, '5 seconds'); is($app->timespec_to_seconds('5minutes'), 5*60, '5 minutes'); diff --git a/t/04_find_archives.t b/t/04_find_archives.t index 2d40eef..7f0186a 100644 --- a/t/04_find_archives.t +++ b/t/04_find_archives.t @@ -17,7 +17,7 @@ $db->mock('get_archives_for_path', sub {return [ { modification_time => 15, archive => "test5"}, ];}); -my $app = App::BorgRestore->new_no_defaults({}, {db => $db}); +my $app = App::BorgRestore->new_no_defaults({db => $db}); eq_or_diff($app->find_archives('test/path'), [ {archive => 'test1', modification_time => 2}, |