From 9e8ecd20d70484edb00b782ea718d8d27d1272e2 Mon Sep 17 00:00:00 2001 From: Chris Nehren Date: Sun, 20 Apr 2008 23:14:28 +0000 Subject: [PATCH] fix for a test to reflect that exportGetUrlAsPath now calls exportCheckPath --- t/Asset/AssetExportHtml.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/Asset/AssetExportHtml.t b/t/Asset/AssetExportHtml.t index 5291cbffb..d52aa65c9 100644 --- a/t/Asset/AssetExportHtml.t +++ b/t/Asset/AssetExportHtml.t @@ -381,7 +381,11 @@ cmp_deeply( ); # the exception was thrown, but make sure that the file also wasn't written -ok(!-e $home->exportGetUrlAsPath->absolute->stringify, "exportWriteFile does not write the file when it can't create the exportPath"); +# can't call exportGetUrlAsPath on $home right now, since the path is +# inaccessible and exportGetUrlAsPath calls exportCheckPath which throws an +# exception. therefore, specify this single specific case specifically for the +# sake of the test. +ok(!-e Path::Class::File->new($unwritablePath, 'home', 'index.html')->absolute->stringify, "exportWriteFile does not write the file when it can't create the exportPath"); # let's go a level deeper # but reset the exportPath first