Automatic Testing of REST Web Services Client with Rails by Owen Ou

Vancouver Ruby Meetup Group
Vancouver Ruby Meetup Group
Public group

1605-555 W. Hastings St. Harbour Centre · Vancouver, BC

How to find us

Come to the elevator lobby of Harbour Centre and ask security to let you up to the 16th floor or look for the crowd of Rubyists being let up the elevator

Location image of event venue


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: .