4 5 6 7 8 9 10 11 12
# File 'lib/sunspot/rails/spec_helper.rb', line 4 def disconnect_sunspot before(:each) do Sunspot.session = StubSessionProxy.new(Sunspot.session) end after(:each) do Sunspot.session = Sunspot.session.original_session end end