title: rspec rails 6 controllers
body: <p>I have created a new project using rails 6 and I can't test many controllers with rspec 3.8 or 3.9.0.pre, for example this test:</p>
  
  <pre class="lang-rb prettyprint-override"><code>it 'OK' do
    get :index
    expect(response).to be_ok
  end
  </code></pre>
  
  <p>raises</p>
  
  <pre><code>Failure/Error: render template: 'rig_masters/index'
  
       ActionView::Template::Error:
         wrong number of arguments (given 2, expected 1)
  </code></pre>
  
  <p>if I have a controller that renders <strong>json</strong> it passes, for example if the controller is</p>
  
  <pre class="lang-rb prettyprint-override"><code>def index
    @components = Component.recent
    render json: @components
  end
  </code></pre>
  
  <p>test passes</p>
  
  <p>but if I try to render a view like</p>
  
  <pre class="lang-rb prettyprint-override"><code>def index
    @components = Component.recent
  end
  </code></pre>
  
  <p>or even</p>
  
  <pre class="lang-rb prettyprint-override"><code>def index
    @components = Component.recent
    render template: 'components/index'
  end
  </code></pre>
  
  <p>raises the <code>ActionView::Template::Error: wrong number of arguments (given 2, expected 1)</code> error</p>
  
  <p>Any help to make these tests pass would be greatly appreciated.</p>