Skip to content

Commit

Permalink
BL-924
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Jan 14, 2025
1 parent cc022bc commit 45f9138
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<cfinclude template="../../global/system/IncludeTestAgain2.cfm">
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<cfset result = getCurrentTemplatePath()>
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ public void testCanIncludeTemplateTagDotDotSlash() {
assertThat( variables.get( result ).toString().contains( "IncludeTest.cfs" ) ).isTrue();
}

@DisplayName( "It can include template tag Dot Dot Slash again" )
@Test
public void testCanIncludeTemplateTagDotDotSlashAgain() {

instance.executeSource(
"""
<cfinclude template="src/test/java/ortus/boxlang/runtime/bifs/global/system/IncludeTestAgain.cfm">
""",
context, BoxSourceType.CFTEMPLATE );
assertThat( variables.getAsString( result ) ).contains( "IncludeTestAgain2.cfm" );
}

@DisplayName( "It can include template BL tag" )
@Test
public void testCanIncludeTemplateBLTag() {
Expand Down

0 comments on commit 45f9138

Please sign in to comment.