Hi Colin
Generally I don't recommend testing external libraries (Rails,
Thinking Sphinx, etc). The only exception to this would be integration
tests - but definitely not in unit tests.
As for integration tests, there's no neat way to handle things just
yet, but it's on my list.
Sorry I'm not flush with helpful ideas :/
--
Pat
On 21/05/2009, at 3:26 AM, Colin Ramsay wrote:
>
> So I was thinking to write a unit test to check that my searching with
> Sphinx was working as I expected. I fired up rake
> thinking_sphinx:start, and then wrote a test which pushed a couple of
> records to the database and then ran Model.search("query"). However,
> because the index had not been rebuilt since saving the records and
> running the search, I get no results.
>
> What is the recommended approach for this?
>
> Thanks in advance,
> Colin.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---