title: How can I view the rendered page in an RSpec/Capybara view spec?
body: <p>I know in a normal feature spec using Capybara, I could do something like this:</p>
  
  <pre><code>require "rails_helper"
  
  describe "users/show", type: :feature do
    it 'renders a page' do
      visit user_path
      save_and_open_page
    end
  end
  </code></pre>
  
  <p>Is there an equivalent way to view the rendered page in a view spec, without tagging it as a feature? Ie something like this:</p>
  
  <pre><code>require "rails_helper"
  
  describe "users/show", type: :view do
    it 'renders a page' do
      render
      save_and_open_page
    end
  end
  </code></pre>
  
  <p>As is, I get a <code>NameError: undefined local variable or method 'save_and_open_page'</code> raised when I try this.</p>
  
  <p>(I know I could just view the string as rendered, and <a href="https://stackoverflow.com/a/36318308/3210927">this method</a> someone suggested in a similar thread on feature specs works - and I could write my own method to do that if need be. But it seems likely there'd be some existing functionality for it?)</p>