Hi Matt

I'm assuming you're using delta indexes. You'll need to set to  
settings to true (they default to false in a test environment):
ThinkingSphinx.deltas_enabled = true
ThinkingSphinx.updates_enabled = true

Give that a shot, see if it helps.

Cheers

-- 
Pat

On 18/12/2008, at 5:39 PM, Matt Murphy wrote:

>
> Hello,
>
> I'm trying to test some code that uses thinking_sphinx and it seems
> that when I update an indexed model inside a test method the index
> does not actually get updated.
>
> This works fine in the console and when I have transactional_fixtures
> turned off.
>
> Does anyone know if there is a way to get this to work and still
> benefit from transactional_fixtures?
>
> (I have thought about mocking/stubbing thinking_sphinx away, but one
> of the goals of this test is to allow me to be a bit more experimental
> with :with and :without options and still be sure that the core
> features still work.)
>
> Any thoughts would be much appreciated.
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to