Skip to content

Commit f32de54

Browse files
committed
fix failing tests
1 parent db877e0 commit f32de54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

grails-test-suite-base/src/main/groovy/org/grails/web/taglib/AbstractGrailsTagTests.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ abstract class AbstractGrailsTagTests extends GroovyTestCase {
9898
}
9999

100100
GrailsWebRequest buildMockRequest(ConfigObject co) throws Exception {
101+
co.grails.resources.pattern = '/**'
101102
def config = new PropertySourcesConfig().merge(co)
103+
102104
ga.config = config
103105
Holders.config = config
104106
servletContext.setAttribute(GrailsApplicationAttributes.APPLICATION_CONTEXT, appCtx)
@@ -222,6 +224,7 @@ abstract class AbstractGrailsTagTests extends GroovyTestCase {
222224
grailsApplication = new DefaultGrailsApplication(gcl.loadedClasses, gcl)
223225
grailsApplication.metadata[Metadata.APPLICATION_NAME] = getClass().name
224226
ga = grailsApplication
227+
ga.config.grails.resources.pattern = '/**'
225228
ga.config.grails.gsp.tldScanPattern = 'classpath*:/META-INF/spring*.tld,classpath*:/META-INF/fmt.tld,classpath*:/META-INF/c.tld,classpath*:/META-INF/core.tld,classpath*:/META-INF/c-1_0-rt.tld'
226229
grailsApplication.initialise()
227230
mockManager = new MockGrailsPluginManager(grailsApplication)

0 commit comments

Comments
 (0)