Re: [rspec-users] stub_chain together with should_receive

2010-11-26 Thread medihack
David, sorry for double posting (it seems I am working too much and forgetting about what I already asked) ... and thanks for your answer. How about a bit more convenient way for future releases. Something like: MyModel.stub_chain(:tag_counts, { :offset => 0 }, :limit, :order).and_return([]) it cou

Re: [rspec-users] stub_chain together with should_receive

2010-11-26 Thread David Chelimsky
On Nov 26, 2010, at 2:24 AM, medihack wrote: > David, sorry for double posting (it seems I am working too much and > forgetting about what I already asked) ... and thanks for your answer. > How about a bit more convenient way for future releases. Something > like: > MyModel.stub_chain(:tag_counts,