Testing REST web services client has never been easy. It requires a running web server, multiple threads, network conection and complex transaction management.
Ideally, REST web service client test should have the following characteristics:
The experience of testing REST resource is similar to that of testing an ActiveRecord model Start up and shut down web server for the purpose of running REST web services Rollback test data after each test Control fixture creation for REST web services All tests are automatic In this talk, I am going to write and test a REST web service API together with you using TDD. As we go we will discuss some tricks of testing web service client code. Highlights include using ActiveResource for web service resource test, transactional rollback with dRuby, and fixture creation with dRuby etc. Come hang out and hack some code together!
You can find more info about talk here: http://owenou.com/2011/07/20/testing-rest-web-services-with-rails.html .