Re: [rspec-users] Documentation about the returns method

2009-01-16 Thread Fernando Perez
David Chelimsky wrote: > On Wed, Jan 14, 2009 at 3:53 PM, Fernando Perez > wrote: >>> >>> Here are my questions: >>> - What does the returns(Episode.all) mean? > Okay I get it now. Thank you very much. -- Posted via http://www.ruby-forum.com/. ___ rs

Re: [rspec-users] Documentation about the returns method

2009-01-14 Thread David Chelimsky
On Wed, Jan 14, 2009 at 3:53 PM, Fernando Perez wrote: > Fernando Perez wrote: >> Hi, >> >> From the railscasts website source code, in the episodes_controller_spec >> I read: >> >> it "index action with search should search published episodes" do >> Episode.expects(:search_published).with('

Re: [rspec-users] Documentation about the returns method

2009-01-14 Thread Fernando Perez
Fernando Perez wrote: > Hi, > > From the railscasts website source code, in the episodes_controller_spec > I read: > > it "index action with search should search published episodes" do > Episode.expects(:search_published).with('foo').returns(Episode.all) > get :index, :search => 'foo' >