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