Sha256: d8da966dc7ebb83220584828999288f0d4e8579d454f14c8b35721bf4a4b0e16

Contents?: true

Size: 971 Bytes

Versions: 14

Compression:

Stored size: 971 Bytes

Contents

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

describe Sunspot::Rails::Server do
  before :each do
    @server = Sunspot::Rails::Server.new
    @solr_home = File.expand_path(File.join(Rails.root, 'solr'))
  end

  it "sets the correct Solr home" do
    @server.solr_home.should == @solr_home
  end

  it "sets the correct Solr library path" do
    @server.lib_path.should == File.join(@solr_home, 'lib')
  end

  it "sets the correct Solr PID path" do
    @server.pid_path.should == File.join(Rails.root, 'tmp', 'pids', 'sunspot-solr-test.pid')
  end

  it "sets the correct Solr data dir" do
    @server.solr_data_dir.should == File.join(@solr_home, 'data', 'test')
  end

  it "sets the correct port" do
    @server.port.should == 8980
  end

  it "sets the correct log level" do
    @server.log_level.should == "FINE"
  end

  it "sets the correct log file" do
    @server.log_file.should == File.join(Rails.root, 'log', 'sunspot-solr-test.log')
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
ruben_sunspot_rails-1.1.4 spec/server_spec.rb
ruben_sunspot_rails-1.1.3 spec/server_spec.rb
ruben_sunspot_rails-1.1.2 spec/server_spec.rb
ruben_sunspot_rails-1.1.1 spec/server_spec.rb
ruben_sunspot_rails-1.1.0 spec/server_spec.rb
nuatt_sunspot_rails-1.1.0.3 spec/server_spec.rb
robsharp-sunspot_rails-1.1.0.2 spec/server_spec.rb
sunspot_rails-1.1.0 spec/server_spec.rb
sunspot_rails-1.0.5 spec/server_spec.rb
sunspot_rails-1.0.4 spec/server_spec.rb
sunspot_rails-1.0.3 spec/server_spec.rb
sunspot_rails-1.0.2 spec/server_spec.rb
sunspot_rails-1.0.1 spec/server_spec.rb
sunspot_rails-1.0.0 spec/server_spec.rb