Open ppazos opened 4 years ago
@ppazos this looks to be caused by missing the gsp plugin you can add it something like compile "org.grails.plugins:gsp" to your build.gradle and it should resolve the issue in the tests. I came across a similar issue and tried that and looks to fix it. sharing this here in case it is helpful.
FYI: found this test but it's @Ignored https://github.com/grails/grails-gsp/blob/af8bfebd63936fe29ef7abe833386b0ed00e01f3/grails-plugin-gsp/src/test/groovy/org/grails/web/pages/TagLibNamespaceTests.groovy#L13
Task List
When the tests are executed, the one for the taglibs fail:
Tag [isLoggedIn] does not exist. No tag library found for namespace: sa
The tablig is defined in the 'sa" namespace:
The issue is in the
def output = applyTemplate('<sa:isLoggedIn>hidden content</sa:isLoggedIn>')
https://github.com/ppazos/grails-simple-auth/blob/master/src/test/groovy/com/cabolabs/security/SimpleAuthTagLibSpec.groovy#L28
Steps to Reproduce
Expected Behaviour
Should execute the taglib and return some output to compare with the expected behavior.
Actual Behaviour
ERROR:
Tag [isLoggedIn] does not exist. No tag library found for namespace: sa
Environment Information
Example Application
it's a plugin: https://github.com/ppazos/grails-simple-auth