bglusman/rstat.us — pull request #2 by clnclarinet (2012-01-22 20:00:20+00:00)
Title: Elasticsearch

Hey Brian,

I rebased on upstream/master and added one commit. I found this page on Tire's wiki about integration tests:

https://github.com/karmi/tire/wiki/Integration-Testing-Rails-Models-with-Tire

Basically, I think the wires were getting crossed between the indexes and the databases in dev vs test mode, and the indexes need to be cleared and refreshed during tests.

Please try this out and let me know how it goes.