aboutsummaryrefslogtreecommitdiff
path: root/t/01-read.t
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-12 10:37:34 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-07-12 10:37:34 +0200
commit0d1737fb2ab52cf56ddf2146e5ff910dfc66d7b4 (patch)
tree2101379f64cf4b922b604ce847e72f4d207317c7 /t/01-read.t
parent5bb23ec4cd01cafa5b8a5a8db0b038376099a956 (diff)
Modernize the module
Diffstat (limited to 't/01-read.t')
-rw-r--r--t/01-read.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/01-read.t b/t/01-read.t
index fa5a75b..5c15087 100644
--- a/t/01-read.t
+++ b/t/01-read.t
@@ -5,13 +5,12 @@ use Test;
use lib "lib";
use Config;
-use Config::Parser::toml;
plan 4;
my $config = Config.new();
-ok $config.read("t/files/config.toml"), "File reading throws no error";
+ok $config.read('t/files/config.toml'.IO), "File reading throws no error";
subtest "Contents match" => {
plan 2;
@@ -20,7 +19,7 @@ subtest "Contents match" => {
is $config.get("header.b"), "b", "b = b";
};
-ok $config.read("t/files/merge.toml"), "File merging throws no error";
+ok $config.=read('t/files/merge.toml'.IO), "File merging throws no error";
subtest "Contents match after merging" => {
plan 4;