Skip to content

Commit 6832a24

Browse files
author
graeme
committed
fix for failing test
git-svn-id: https://svn.codehaus.org/grails/trunk@5336 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent 9c8fe74 commit 6832a24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/groovy/org/codehaus/groovy/grails/web/taglib/AbstractGrailsTagTests.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import org.codehaus.groovy.grails.web.servlet.*
1212
import org.springframework.mock.web.*
1313
import org.springframework.validation.*
1414
import org.springframework.web.servlet.*
15+
import org.springframework.context.*
1516
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
1617
import org.springframework.web.servlet.DispatcherServlet;
1718
import org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver;
@@ -61,6 +62,9 @@ abstract class AbstractGrailsTagTests extends GroovyTestCase {
6162
if(go.properties.containsKey("grailsUrlMappingsHolder")) {
6263
go.grailsUrlMappingsHolder = appCtx.grailsUrlMappingsHolder
6364
}
65+
if(go instanceof ApplicationContextAware) {
66+
go.applicationContext = appCtx
67+
}
6468
def webRequest = RequestContextHolder.currentRequestAttributes()
6569

6670
webRequest.out = out

0 commit comments

Comments
 (0)