Skip to content
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
@sbglasius

Description

@sbglasius

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions