title: Testing if some function call method on associated object in Rspec
body: <p>Assume I have some method which call another method on some object:</p>
  
  <pre><code>def initialize
    @obj = SomeClass.new
  end
  
  def method
    @obj.another_method
  end
  </code></pre>
  
  <p>How can I test this with Rspec and <code>.should_receive</code>?</p>