From 604495ee8b686e14b1ef26eca9681aa06ce796cb Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sat, 29 Jul 2017 02:43:15 +0200 Subject: Add tests for reading a List of files --- lib/Config/Parser/NULL.pm6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Config/Parser/NULL.pm6 b/lib/Config/Parser/NULL.pm6 index ff384b1..5113043 100644 --- a/lib/Config/Parser/NULL.pm6 +++ b/lib/Config/Parser/NULL.pm6 @@ -9,18 +9,18 @@ use Config::Parser; #| Hash to return when calling `read`. class Config::Parser::NULL is Config::Parser { - my $mock-config; + my %mock-config = (); #| Return the mock config, skipping the file entirely. method read(Str $path --> Hash) { - $mock-config; + %mock-config; } #| Set the mock config to return on read. method set-config(Hash $config) { - $mock-config = $config; + %mock-config = $config; } #| Return True, as if writing succeeded. -- cgit v1.1