From ed219a26574e05ba27264d73e75e5690e478570f Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 26 Apr 2017 23:08:59 +0200 Subject: Add Config::Parser::NULL for testcases --- t/reading.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 't/reading.t') diff --git a/t/reading.t b/t/reading.t index e43252a..0792188 100644 --- a/t/reading.t +++ b/t/reading.t @@ -10,9 +10,9 @@ use Config; my $config = Config.new(); -throws-like { $config.read("nonexistant-config") }, Config::Exception::FileNotFoundException, "Reading nonexisting file"; -throws-like { $config.read("t/test-stub") }, Config::Exception::UnknownTypeException, "Reading file of unknown type"; -throws-like { $config.read("t/test-stub", "Config::Parser:NoSuchParserForTest") }, Config::Exception::MissingParserException, "Using non-existing parser"; +throws-like { $config.read("t/files/none") }, Config::Exception::FileNotFoundException, "Reading nonexisting file"; +throws-like { $config.read("t/files/config") }, Config::Exception::UnknownTypeException, "Reading file of unknown type"; +throws-like { $config.read("t/files/config", "Config::Parser:NoSuchParserForTest") }, Config::Exception::MissingParserException, "Using non-existing parser"; my $hash = { "a" => "a", -- cgit v1.1