title: undefined method `receive_message_chain'
body: <p>Surprisingy can't find anything about this.</p>
  
  <p>Trying to stub this chain of methods:</p>
  
  <pre><code>Twitter::REST::Client.new(&lt;some credentials&gt;).user.followers_count
  </code></pre>
  
  <p>What I actually want to do is this:</p>
  
  <pre><code>allow_any_instance_of(Twitter::REST::Client).to receive_message_chain(:user, :followers_count).and_return 0
  </code></pre>
  
  <p>But it did not work. Gave an error <code>undefined method 'receive_message_chain'</code>.</p>
  
  <p>So I found this tutorial on Rspec-Mocks 3.0: <a href="https://github.com/rspec/rspec-mocks/blob/master/features/method_stubs/receive_message_chain.feature" rel="nofollow">https://github.com/rspec/rspec-mocks/blob/master/features/method_stubs/receive_message_chain.feature</a></p>
  
  <p>And tried this:</p>
  
  <pre><code>subject = Twitter::REST::Client
  allow(subject).to receive_message_chain(:user, :followers_count).and_return 0
  expect(Twitter::REST::Client.new.users.followers_count).to eq 0
  </code></pre>
  
  <p>Just to try it out - and it did not work either. Is there anything I'm doing wrong?</p>
  
  <p>I do have <code>rspec-mocks (3.0.0.beta1)</code> in my <code>Gemfile.lock</code>.</p>
  
  <p>Other types of stubs (like <code>.to receive(:method)</code> work fine.</p>