title: rspec mocks: verify expectations in it "should" methods?
body: <p>I'm trying to use rspec's mocking to setup expectations that I can verify in the it "should" methods... but I don't know how to do this... when i call the .should_receive methods on the mock, it verifies the expected call as soon as the before :all method exits.</p>
  
  <p>here's a small example:
  </p>
  
  <pre><code>describe Foo, "when doing something" do
   before :all do
    Bar.should_recieve(:baz)
    foo = Foo.new
    foo.create_a_Bar_and_call_baz
   end
  
   it "should call the bar method" do
    # ??? what do i do here?
   end
  end
  </code></pre>
  
  <p>How can i verify the expected call in the 'it "should"' method? do i need to use mocha or another mocking framework instead of rspec's? or ???</p>