1. 4
  1.  

  2. 2

    When I was a Rails developer I never wrote view-specific tests and don’t think they are especially useful.

    But I always wrote integration tests which exercised the full request/response cycle, including view rendering, which is critically useful. ERB is like any other piece of code: if you aren’t exercising it regularly, it’s probably broken.

    1. 1

      Controller unit tests (if that’s your jam) can also enable view rendering (off by default)