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

Version Path
ruben_sunspot_rails-1.1.4 lib/sunspot/rails/spec_helper.rb
ruben_sunspot_rails-1.1.3 lib/sunspot/rails/spec_helper.rb
ruben_sunspot_rails-1.1.2 lib/sunspot/rails/spec_helper.rb
ruben_sunspot_rails-1.1.1 lib/sunspot/rails/spec_helper.rb
ruben_sunspot_rails-1.1.0 lib/sunspot/rails/spec_helper.rb
nuatt_sunspot_rails-1.1.0.3 lib/sunspot/rails/spec_helper.rb
robsharp-sunspot_rails-1.1.0.2 lib/sunspot/rails/spec_helper.rb
sunspot_rails-1.1.0 lib/sunspot/rails/spec_helper.rb
sunspot_rails-1.0.5 lib/sunspot/rails/spec_helper.rb
sunspot_rails-1.0.4 lib/sunspot/rails/spec_helper.rb
sunspot_rails-1.0.3 lib/sunspot/rails/spec_helper.rb
sunspot_rails-1.0.2 lib/sunspot/rails/spec_helper.rb
sunspot_rails-1.0.1 lib/sunspot/rails/spec_helper.rb
sunspot_rails-1.0.0 lib/sunspot/rails/spec_helper.rb