I use the sunspot-rails for search. These is a Rspec looks like:
describe \"GET search\" do before(:all) do system(\"rake\", \"sunspot:solr:start\") end
The sunspot_test gem will do this for you and supports RSpec.