diff options
author | Patrick Spek <p.spek@tyil.nl> | 2017-04-26 23:44:37 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2017-04-26 23:44:37 +0200 |
commit | 10a43069bef7746c3970c6a00e8ef555c53b8c5c (patch) | |
tree | 80c8916c7bc239f71c422780bbf549f9ac9afa29 | |
parent | 6aed1eca976c3eec6b971f18a74943c8e5274d2e (diff) | |
download | config-parser-yaml-10a43069bef7746c3970c6a00e8ef555c53b8c5c.tar.gz config-parser-yaml-10a43069bef7746c3970c6a00e8ef555c53b8c5c.tar.bz2 |
Fix up test
-rw-r--r-- | lib/Config/Parser/yaml.pm6 | 1 | ||||
-rw-r--r-- | t/02-merge.t | 2 | ||||
-rw-r--r-- | t/files/merge.yaml | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/lib/Config/Parser/yaml.pm6 b/lib/Config/Parser/yaml.pm6 index c0c194e..366368f 100644 --- a/lib/Config/Parser/yaml.pm6 +++ b/lib/Config/Parser/yaml.pm6 @@ -9,6 +9,7 @@ class Config::Parser::yaml is Config::Parser { method read(Str $path --> Hash) { + say $path; load-yaml(slurp $path); } } diff --git a/t/02-merge.t b/t/02-merge.t index 8018e73..cf9aa6a 100644 --- a/t/02-merge.t +++ b/t/02-merge.t @@ -19,4 +19,4 @@ is-deeply $config.get(), { c => "c", d => "d" } -} +}, "Ensure configurations are merged"; diff --git a/t/files/merge.yaml b/t/files/merge.yaml index e69de29..64ce87b 100644 --- a/t/files/merge.yaml +++ b/t/files/merge.yaml @@ -0,0 +1,2 @@ +b: + d: "d" |