Testing Ajax with ruby on rails