title: Rspec Mocks on any_instance with exactly(n) times
body: <p>I want to use Mocks in rspec tests like.</p>
  
  <pre><code>klass.any_instance.should_receive(:save).exactly(2).times.and_return(true)
  </code></pre>
  
  <p>but I get an error message like:</p>
  
  <p><strong>'The message "save" was received by &lt;#Object> but has already been received by &lt;#Object>'</strong></p>
  
  <p>Temporary I use stub but for accuracy want to use mocks</p>