Skip to content

Commit 700683c

Browse files
committed
LDEV-4772 - fix test case
1 parent c22155d commit 700683c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/tickets/LDEV4772.cfc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
1313
it(title = "Checking evaluate() with datetime", body = function( currentSpec ) {
1414

1515
// set old archive as mapping
16+
var curr=getDirectoryFromPath(getCurrentTemplatePath());
17+
var parent=getDirectoryFromPath(mid(curr,1,len(curr)-1));
18+
var art=parent&"artifacts/lars/lucee-5.lar";
19+
expect( fileExists(art) ).toBeTrue();
1620
admin
1721
action="updateComponentMapping"
1822
type="web"
1923
password=request.WEBADMINPASSWORD
2024
virtual="/test4772"
2125
primary="archive"
2226
physical=""
23-
archive=expandPath("../artifacts/lars/lucee-5.lar");
24-
27+
archive=art;
28+
29+
2530
var ss=new org.cfpoi.spreadsheet.Spreadsheet();
2631

2732
});

0 commit comments

Comments
 (0)