title: Test arguments in Rspec?
body: <p>Is it possible to check what arguments is being passed to a method when testing with rspec?</p>
  
  <p>If I for i.e want to test class A, inside class A i call class B, B is already tested.
  The only thing I want to test is the ingoing arguments to B.</p>
  
  <pre><code>class A
    def method
      number = 10
      B.calling(number)
    end
  end
  
  class B
    def self.calling(argument)
      # This code in this class is already testet
    end
  end
  </code></pre>
  
  <p>How do I test the ingoing arguments to B.calling?</p>