A Spock IntegrationSpec for Grails Controllers, with transaction rollback
Groovy
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ControllerIntegrationSpec.groovy
README

README

A Spock ControllerSpec that wraps each test method in a transaction, and rolls the transaction back at the end of the test method.

IntegrationControllerSpec merges the code for IntegrationSpec and ControllerSpec, yielding a ControllerSpec that executes test methods in transactions, and rolls them back.