Module: Sunspot::Rails::SpecHelper

Defined in:
lib/sunspot/rails/spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#disconnect_sunspotObject



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