Sha256: 1ca82971be1e7fff89e42ede8de8e126a99d94b8bb0eee0ea6673e820bba9c8e
Contents?: true
Size: 394 Bytes
Versions: 14
Compression:
Stored size: 394 Bytes
Contents
module Sunspot module Rails module SpecHelper def disconnect_sunspot before(:each) do Sunspot.session = StubSessionProxy.new(Sunspot.session) end after(:each) do Sunspot.session = Sunspot.session.original_session end end end end end Spec::Runner.configure do |config| config.extend(Sunspot::Rails::SpecHelper) end
Version data entries
14 entries across 14 versions & 4 rubygems