We're calling Solr directly inside a few dozen different spec files. This doesn't follow best practices, and also makes the tests run slower. Let's add a universal stub to all tests inside the rails_helper.rb file that will change all the test calls to Solr into stubs and prevent future accidental calls to Solr from within the testing suite.
We're calling Solr directly inside a few dozen different spec files. This doesn't follow best practices, and also makes the tests run slower. Let's add a universal stub to all tests inside the rails_helper.rb file that will change all the test calls to Solr into stubs and prevent future accidental calls to Solr from within the testing suite.