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
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('
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'
>