Oh!
i understood now
Thanks for good explanation
David Chelimsky wrote in post #961764:
> On Nov 15, 2010, at 10:31 PM, Sai Babu wrote:
>
>> it is working fine
>> Thanks in advance?
> When you say "foo.should_receive(:bar)" you're saying "foo should
> receive bar sometime between now and the en
On Nov 15, 2010, at 10:31 PM, Sai Babu wrote:
> Hi friends
>
> in my rspec_controller
>
> 1...@user.articles.should_receive(:find_by_id).with('1').and_return(@article)
>
> get :show,:id => 1
>
> in above example 1 if i mention get :show, :id => 1 below the
> schould_receive
> it is working fin