michaelcameron/grails-jesque — pull request #13 by tednaleid (2012-05-30 20:33:01+00:00)
Title: upgrading grails/jedis/grails-redis/jesque versions 

This pull request upgrades a number of components to more recent versions including:

* grails 2.0.1 -> grails 2.0.3 (didn't change plugin base requirement of > 2.0.0)
* grails-redis 1.0.0.M7 -> grails-redis 1.3.1
* spock-0.6-SNAPSHOT -> spock-0.6
* jesque:1.1.2 -> jesque:1.2.0
* jedis:2.0.0 -> jedis:2.1.0

Many of the older versions are deprecated and some aren't available in maven central anymore making compilation difficult.

All tests pass with these changes.

I ran into problems with Grails 2 and the `JesqueServiceIntegrationTests.testWorkerDomainJob` test so I needed to change it a little bit. The test created a `Foo` and then kicked off a job to modify that `Foo` and then checks to see if it's modified. In grails 2, as far as I can tell, the test transactions have been changed a little so that there isn't any clean way for the test to commit it's work so that it's visibile to the job thread, so it was failing because the job test couldn't see the `Foo` to update it. I changed it so that the job just creates a new `Foo` with a passed in name and the test asserts that it can see it after the job is done. I think the spirit of the test is to ensure that hibernate/GORM works and this demonstrates that.