Re: [rspec-users] why should_receive behaves differently

2010-11-16 Thread Sai Babu
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

Re: [rspec-users] why should_receive behaves differently

2010-11-15 Thread David Chelimsky
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