Hi Ramón Sounds like it should work - can you show us one of your tests? And the index definition?
-- Pat On 04/02/2011, at 3:15 AM, Ramón Cahenzli wrote: > Hi everyone, > > We have a Rails app, code here: > > http://code.zhdk.ch/projects/madek/browser/trunk > > http://code.zhdk.ch/svn/madek/trunk > > That we simply cannot test using rspec. We have enabled delta indexing > explicitly during testing like so: > > ThinkingSphinx.deltas_enabled = true > ThinkingSphinx.updates_enabled = true > > And checking for ThinkingSphinx.deltas_enabled? in our tests always returns > true. Yet when a new object is saved, Model.search("foo") would return no > results, even though that entry should be there. Running rake ts:reindex from > outside the Rails application while running the tests intermittently produces > positive results, but we cannot test like this because this is not reliable. > Running the very same tests in the development environment usually makes them > all work. Completely killing searchd, reindexing and restarting searchd every > single time we want a result to be returned also makes it work, but that's > plain silly. > > What's the special sauce that ThinkingSphinx puts on the test environment? > > Thanks :) > > Ramón > > > -- > 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. -- 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.
