This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Description
With an interceptor like this:
class ActionNameInterceptor {
boolean before() {
println "$controllerName $actionName $params"
if (actionName) {
request.setAttribute('actionNameSet', 'action name set')
}
return true
}
}
When running, the actionName is set, but when running tests, the actionName is not set.
See https://github.com/sbglasius/grailsInterceptorBugs interceptorbug.ActionNameInterceptorSpec#Test interceptor actionName should be set to default index and interceptorbug.ActionNameInterceptorSpec#Test interceptor actionName should be set to specific name for tests