Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add sunspot_test gem to manage the solr instance for the test suite #58

Merged
merged 2 commits into from Jun 6, 2012

Conversation

Projects
None yet
2 participants

DBNess commented May 27, 2012

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]
  3. Add sunspot_test gem support to manage test solr process automatically

This implements option 3 ^

Member

ryanatwork commented Jun 6, 2012

Looks like the target changed on this. This looks like a good addition - can you update so it merges cleanly?

DBNess commented Jun 6, 2012

@ryanatwork - thanks! Just updated and merging into master works on my local, let me know if there's still an issue?

ryanatwork added a commit that referenced this pull request Jun 6, 2012

Merge pull request #58 from DBNess/add_solr_test_mgr
Add sunspot_test gem to manage the solr instance for the test suite

@ryanatwork ryanatwork merged commit 3422656 into codeforamerica:master Jun 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment