Speed up search end to end tests by turning on elasticsearch once
We're currently turning on elasticsearch before each test if the test sees that it is off. That is, the test examines the elasticsearch setting to see if it's off, if it is off then the test turns it on, waits, then starts the test, when the test is over as an after
step the test returns the state to the original state, which is off. The next test does the same thing etc.
We can use before(:suite)
in an Rspec.configure
block to turn rspec on once, then run all the tests, then return it to the off position if we desire.