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.
Each format (HTML, CSV, JSON, and XML) tests for the following:
This PR addresses issue 33:
Each format (
HTML, CSV, JSON, and XML
) tests for the following:200/successful http response
Content-Type
headerresponse body