Sha256: 13b096204652a2bc581265f6a632b572386e1767f16b33a9f764d94c75f109f1

Contents?: true

Size: 544 Bytes

Versions: 5

Compression:

Stored size: 544 Bytes

Contents

require File.expand_path('spec_helper', File.dirname(__FILE__))

describe Sunspot do
  describe "reset!" do
    it "should reset current session" do
      old_session = Sunspot.send(:session)
      Sunspot.reset!(true)
      Sunspot.send(:session).should_not == old_session
    end

    it "should keep keep configuration if specified" do
      Sunspot.config.solr.url = "http://localhost:9999/path/solr"
      config_before_reset = Sunspot.config
      Sunspot.reset!(true)
      Sunspot.config.should == config_before_reset
    end
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
pduey-sunspot-1.2.1.1 spec/api/sunspot_spec.rb
erichummel-sunspot-1.2.1 spec/api/sunspot_spec.rb
lisausa-sunspot-1.2.1 spec/api/sunspot_spec.rb
sunspot_rbg-1.3.1 spec/api/sunspot_spec.rb
sunspot_rbg-1.3.0 spec/api/sunspot_spec.rb