Sha256: f6c42ca0b103e77b0824d0cf1f54f1ab0e87efa257181b3d8025baeb576bd8bc
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
require 'spec_helper' module Sunspot describe Rails do describe '.master_config' do let(:configuration) do double 'configuration', :master_hostname => 'masterlocalhost', :master_port => 6666, :master_path => '/mastersolr', :master_user => 'masteruser', :master_password => 'masterpassword' end let(:master_config) { subject.send(:master_config, configuration) } specify { master_config.should be_an_instance_of(LightConfig::Configuration) } specify { master_config.solr.url.should eq('http://masteruser:masterpassword@masterlocalhost:6666/mastersolr') } end describe '.slave_config' do let(:configuration) do double 'configuration', :hostname => 'localhost', :port => 5555, :path => '/solr', :user => 'user', :password => 'password' end let(:slave_config) { subject.send(:slave_config, configuration) } specify { slave_config.should be_an_instance_of(LightConfig::Configuration) } specify { slave_config.solr.url.should eq('http://user:password@localhost:5555/solr') } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunspot-rails-http-basic-auth-0.0.2 | spec/sunspot/rails_spec.rb |
sunspot-rails-http-basic-auth-0.0.1 | spec/sunspot/rails_spec.rb |