Sha256: 4418f8a991e88fc3f5828deef3021dd2b493b56ba24a768d7dcac0aac721f008
Contents?: true
Size: 997 Bytes
Versions: 1
Compression:
Stored size: 997 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 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(@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 == 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pduey-sunspot_rails-1.2.1.1 | spec/server_spec.rb |