Re: Re: Re: Command line ferret engine

Colin Law
2010-01-21T13:50:04Z

2010/1/21 Hemant Bhargava
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:
> Yeah Colin.. You are right. there should not be any difference in
> searching from browser or from test.. But still the problem exists. Also
> i executed rake db:test:load to take all the development data into test
> database..

I don''t think rake db:test:load loads the development data into the
test db.  For testing you should either be using fixtures or another
method of loading the db with test data.

It is better to insert replies into posts rather than top posting as
then it is easier to see which question is being answered.  See below

>
> Is there any parameter we have to use during test or something else .. ?
>
> Colin Law wrote:
>> 2010/1/20 Hemant Bhargava
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:
>>> No it is post only.. I tried my luck giving it "get" as
well but not
>>> working.. Also the query generates the same thing. select * from
>>> summaries .. before it, it is setting the default ferret variables.
>>
>> So what is the difference between the logs between running it from the
>> browser and running it from the test?

You have not answered the question above

>> When you say the search is not working in the test what do you mean?

You have not answered the question above

>> I presume you have got some data in the test database via fixtures or
>> whatever so the search will find something.
>>
>> Colin
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at