medusa-project / book-tracker

Medusa Book Tracker
0 stars 0 forks source link

Tests for different output formats returned by BooksController.index() #33

Closed adolski closed 11 months ago

adolski commented 11 months ago

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.