I'm not sure what to suggest at this point... obviously your test setup is trying to hit a Solr server that isn't running. Check the host and port that it is trying and ensure that Solr is running as your tests expect or use the mock way that I just replied about.
Note, again, that solr-ruby is deprecated and unsupported at this point. I recommend you give the RSolr project a try if you want support with it in the future. Erik On Feb 22, 2012, at 09:10 , solr wrote: > Hi Erik, > I have tried links which you given. while runnign rake > am getting error > > ====================================================================== > Errno::ECONNREFUSED: No connection could be made because the target machine > acti > vely refused it. - connect(2) > =================================================================== > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-handle-to-run-testcases-in-ruby-code-for-solr-tp3753479p3766559.html > Sent from the Solr - User mailing list archive at Nabble.com.