On Sat, Jun 27, 2009 at 10:55 AM, Zhenning Guan<[email protected]> wrote:
> one more question.
> Forecast.stub!(:new).and_return(@forecast)
> Forecast.should_receive(:new).with(anything()).and_return(@forecast)
>
> what's the different between stub! and should_receive ?

Read this: http://rspec.info/documentation/mocks/ and then feel free
to ask questions about anything  you don't understand.

Cheers,
David
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to