Server test code with Ruby on Rails