To run tests which depend on Solr, we recommend using Sunspot::Solr that bundles Solr distribution for use with Sunsport.
Before running tests, Solr needs to be manually started with the build command:
RAILS_ENV=test bundle exec rake sunspot:solr:start
The command should execute after database is created, but before any test runs.
Semaphore Docs are open source — Edit on GitHub