Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0 final
-
Fix Version/s: 2.0.1
-
Component/s: Documentation
-
Labels:None
Description
As noted in the existing docs (section 9.1.1) @TestFor provides a new instance variable for testing:
-
Adding the TestFor annotation to a controller causes a new "controller" field to be automatically created for the controller under test.
-
In a similar way, a service class gets a "service" field, but that is not documented. Apparently, other @TestFor insertions likely apply and should enumerated.
fixed by https://github.com/grails/grails-doc/commit/504ea0f886eaa0c8044ef670f8643100ee36485d