uclibs / ucrate

Scholar@UC: University of Cincinnati's self-submission institutional repository
https://scholar.uc.edu
Other
5 stars 3 forks source link

Stub Solr inside of all tests #1097

Open Janell-Huyck opened 11 months ago

Janell-Huyck commented 11 months ago

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.