title: Rspec 3 upgrade issues with view.stub (Rails)
body: <p>I'm upgrading my tests to Rspec3 (what a bother), removing all my 'shoulds', but I can't work out how to upgrade 'view.stub' in my view tests. </p>
  
  <p>I am using devise</p>
  
  <p>example:</p>
  
  <pre><code>view.stub(:current_user) { nil }
  
  render
  
  expect(rendered).to .... etc
  </code></pre>
  
  <p>This gives me a deprecation warning:</p>
  
  <blockquote>
    <p>Using <code>stub</code> from rspec-mocks' old <code>:should</code> syntax without explicitly enabling the syntax is deprecated. Use the new <code>:expect</code> syntax or explicitly enable <code>:should</code> instead. Called from ....</p>
  </blockquote>
  
  <p>I can't work out how to upgrade to the new 'improved' syntax.
  Thanks</p>