Sep
26
writing functional tests with acts_as_solr
September 26, 2008 | Leave a Comment
We are using solr (and acts_as_solr) as the search engine on the backend of a Rails site we recently built. While writing the functional tests I discovered TestUnit needed extended for solr functions to be included and executed. I found an example of the extension, but it had some errors (the syntax wasn’t valid), so I fixed it. Here it is:
Remember to include test case info in your solr.yml and start solr in the test Rails environment (rake solr:start RAILS_ENV=test).