Sha256: 17b71e0ce2ff47ddc7f47340761b949178d38bdb8b183787773d32ff7b7b8936
Contents?: true
Size: 885 Bytes
Versions: 25
Compression:
Stored size: 885 Bytes
Contents
require File.expand_path('spec_helper', File.dirname(__FILE__)) describe Sunspot::Rails::Server do before :each do @server = Sunspot::Rails::Server.new @config = Sunspot::Rails::Configuration.new @solr_home = File.join(@config.solr_home) end it "sets the correct Solr home" do @server.solr_home.should == @solr_home end it "sets the correct Solr PID path" do @server.pid_path.should == File.join(@server.pid_dir, '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 == 8983 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
25 entries across 25 versions & 7 rubygems