title: How to stub base class method that takes multiple arguments in RSpec?
body: <p>I would like to test that instance of ChildClass calls something_interesting while omitting call to BaseClass.my_method</p>
  
  <pre><code>class BaseClass
    def my_method *args, &amp;block
    end
  end
  
  class ChildClass &lt; BaseClass
    def my_method first_arg, second_arg
      something_interesting
      super first_arg, second_arg
    end
  end
  </code></pre>
  
  <p>If I write my test like this:</p>
  
  <pre><code>subject = ChildClass.new
  subject.should_receive :something_interesting
  BaseClass.any_instance.stub :my_method
  subject.my_method
  </code></pre>
  
  <p>I get error:  </p>
  
  <blockquote>
    <p>ArgumentError: wrong number of arguments (3 for 2)</p>
  </blockquote>
  
  <p>Any ideas why is that so? How to stub it out correctly?</p>