Module: Sunspot::Rails::SpecHelper
- Defined in:
- sunspot_rails/lib/sunspot/rails/spec_helper.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) disconnect_sunspot
4 5 6 7 8 9 10 11 12 |
# File 'sunspot_rails/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 |