Sep

26

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:

gist

Remember to include test case info in your solr.yml and start solr in the test Rails environment (rake solr:start RAILS_ENV=test).


Comments

Name (required)

Email (required)

Website

Speak your mind

Linkroll

Recent Projects