Sha256: abd2ac2c43563c5cf76a77a36731e883ba4358291a2f7c3667dc5b7de5ef0d7d
Contents?: true
Size: 986 Bytes
Versions: 4
Compression:
Stored size: 986 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 @server.stub(:configuration){ @config } @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 log level using configuration" do @config.stub(:log_level){ 'WARNING' } @server.log_level.should == "WARNING" 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sunspot_rails-2.2.0 | spec/server_spec.rb |
sunspot_rails-2.1.1 | spec/server_spec.rb |
sunspot_rails-2.1.0 | spec/server_spec.rb |
sunspot_rails-2.0.0 | spec/server_spec.rb |