Skip to content

Commit 30aff9b

Browse files
committed
Fix directory mapping for BoxLang
1 parent d4d17a8 commit 30aff9b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Application.cfc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ component {
1212
testsPath = getDirectoryFromPath( getCurrentTemplatePath() );
1313
this.mappings[ "/tests" ] = testsPath;
1414
rootPath = reReplaceNoCase( this.mappings[ "/tests" ], "tests(\\|/)", "" );
15+
normalizedRootPath = reReplace( rootPath, "[\\\\/]$", "" );
1516
this.mappings[ "/root" ] = rootPath;
1617
this.mappings[ "/cordial-sdk" ] = rootPath;
1718
this.mappings[ "/hyper" ] = rootPath & "modules/hyper";
18-
this.mappings[ "/testingModuleRoot" ] = listDeleteAt( rootPath, listLen( rootPath, "\/" ), "\/" );
19+
this.mappings[ "/testingModuleRoot" ] = getDirectoryFromPath( normalizedRootPath );
1920
this.mappings[ "/app" ] = testsPath & "resources/app";
2021
this.mappings[ "/coldbox" ] = testsPath & "resources/app/coldbox";
2122
this.mappings[ "/testbox" ] = rootPath & "testbox";

0 commit comments

Comments
 (0)