In BooksController.index(), there are four formats in the respond_to block: HTML, CSV, JSON, and XML. We should have tests for each of these that check for an HTTP 200 response, check the Content-Type header, and ideally check that the response body looks like valid HTML/CSV/JSON/XML.
In BooksController.index(), there are four formats in the
respond_to
block: HTML, CSV, JSON, and XML. We should have tests for each of these that check for an HTTP 200 response, check theContent-Type
header, and ideally check that the response body looks like valid HTML/CSV/JSON/XML.