How can I assert my Ajax request and test the JSON output from Ruby on Rails functional tests?
If you are using RSpec, json_spec is worth a look
https://github.com/collectiveidea/json_spec