A Brighter Day: Testing your Sunspot Searches, Unit-Style
Every complex backend server eventually needs three things – emails, workers and searching. At the Ranch, we like to whip out Solr for handling complex searches. Unfortunately, Solr can make testing frustrating – it needs to be running in the background any time we run integration specs, but starting up Solr is slow. Is there a way to lazily load Solr only for the tests that need it?