Re: Re: Re: Re: Command line ferret engine

Hemant Bhargava
2010-01-21T15:19:19Z

Colin Law wrote:

> I don''t know whether that is right, I have never tried it that
way.
> Have you looked at the test db to check that the data are there?
>
> Usually the fixtures are loaded into the test db at test time.  I
> presume you have worked through the Testing guide at
> http://guides.rubyonrails.org/.
>

Yeah that is fine. I have checked. I agree that fixtures will be loaded
at test time. Also i have read a lot of tutorials including this.


> Colin
>
>>>
>>>>> browser and running it from the test?
>>> You have not answered the question above
>> I do not know this. This is what i am conflicting my head upon. I am
>> executing the same method and passing the same paramters to method.
>> Checked it many times. The only thing i found is that when i search
with
>> browser- search query which is
"Summary.find_with_ferret(fuzzy_query,
>> {:limit => :all})" gives me the results but when i run it in a
test, it
>> gives me nothing. That what we have to find out that why this query
>> return nothing.
>
> As mentioned above I think the first thing is to confirm that the data
> are in the test db ok.  Are there other tests that rely on the data
> that should be there.  Are they passing?
>
> Colin

Test db contains exactly the same data as of development database. I
have written many testcases and thay are passing but only this ferret
engine specific is failing. I dunt know whay that line is giving nothing
while the same line is fetching results if i do it using browser.. :''(