title: Adding rspec tests when adding Rails 4 fragment caching?
body: <p>I just converted my client's site to use Rails 4, and then added fragment caching. It's simply awesome in terms of ease and effectiveness. The migration was relatively painless due to having a very large suite of unit tests before I started.</p>
  
  <p>I'd like to get input in terms of how much effort should be put into adding automated tests when adding fragment caching to views.</p>
  
  <p>Is it worth the client's money?
  Is manual testing good enough?
  What's the most effective technique for testing caching? Maybe Capybara integration tests? Other options?
  In terms of the flow, I'd imagine maybe Capybara tests that go like this:</p>
  
  <ol>
  <li>Turn caching on for the test</li>
  <li>Clear the cache</li>
  <li>Visit the page that will be cached</li>
  <li>(Maybe) confirm that page was added to cache</li>
  <li>(Maybe) revisit page and confirm cache was used</li>
  <li>Take action that breaks the cache, either by direct API access or via Capybara UI interaction</li>
  <li>Revisit page that will have had cache busted and confirm that the page displays the correct, new information.</li>
  </ol>