codeforamerica/brigade — pull request #58 by DBNess (2012-05-27 05:18:33+00:00)
Title: Add sunspot_test gem to manage the solr instance for the test suite

After setting up a local environment, running `bundle exec rake spec` yields test failures because solr isn't running for the test environment.

Potential solutions:
1. Add to instructions: run `bundle exec rake RAILS_ENV=test sunspot:solr:start` before running tests
2. Add a check to spec_helper to verify if solr is running for the test environment [[Stack Overflow example]](http://stackoverflow.com/questions/7325885/connection-rejected-from-solr-in-rspec)
3. Add [sunspot_test gem](https://github.com/collectiveidea/sunspot_test) support to manage test solr process automatically

This implements option 3 ^