This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.
InterceptorUnit test does not register actionName #39
Open
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
Metadata
Metadata
Assignees
Labels
No labels