Quantcast

NoSuchBeanDefinitionException for 'grailsLinkGenerator' when extending ControllerSpec

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

NoSuchBeanDefinitionException for 'grailsLinkGenerator' when extending ControllerSpec

Ty Connell
I must be doing something wrong.

A simple unit controller spec extending spock.lang.Specification
passes while changing the extends to ControllerSpec causes
"NoSuchBeanDefinitionException: No bean named 'grailsLinkGenerator' is
defined"

The method under test calls a redirect(action: ...)

I posted an answer here http://bit.ly/GYEB2Z , but my guess is I'm
missing some setup / config somewhere.

I'm using

spock-grails-support:0.6-groovy-1.8
grails 2.0.1
groovy 1.8.6

Thoughts?

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.

Loading...