Hi Pat,

Thanks for responding. Here's the verbose output - not very illuminating 
unfortunately: https://gist.github.com/f2caeade4072adb8df37

However, I think this may be more of a DatabaseCleaner oddity than anything 
to do with TS, as I've managed to get it working, but in a way that makes 
little sense. If I add the following line to features/support/env.rb:

DatabaseCleaner.strategy = :truncation

then it all works - scenarios tagged '@search' run using truncation and 
sphinx results are returned, while scenarios not tagged '@search' appear to 
run in transactions, and sphinx sees nothing as expected. However, if I 
change the line to:

DatabaseCleaner.strategy = :transaction

then I'm back to square one, and every scenario seems to run in a 
transaction, no matter what tag it has. I don't really understand how a 
global setting that's being overwritten at the start of every scenario 
should be able to have this effect, but it certainly seems as if the issue 
is nothing to do with Thinking Sphinx.

Thanks very much for taking a look, I really appreciate it - when I work 
out exactly what's going on I'll report back with a definitive set of 
config.

Cheers,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/thinking-sphinx/-/xWRGUGZ5ZoQJ.
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