Sha256: a99fd733f9e05fab46f65b1de25a53cb4084abb223bd1331402b7a0cdddb257a

Contents?: true

Size: 852 Bytes

Versions: 2

Compression:

Stored size: 852 Bytes

Contents

require 'spec_helper'

module Sunspot
  module Rails
    describe Configuration do
      let(:config) { subject }
      
      before do
        config.user_configuration = {
          'solr'        => { 'user' => 'the_user', 'password' => 'the_password' },
          'master_solr' => { 'user' => 'the_master_user', 'password' => 'the_master_password' }
        }
      end
      
      describe '#user' do
        specify { config.user.should eq('the_user') }
      end
      
      describe '#master_user' do
        specify { config.master_user.should eq('the_master_user') }
      end
      
      describe '#password' do
        specify { config.password.should eq('the_password') }
      end
      
      describe '#master_password' do
        specify { config.master_password.should eq('the_master_password') }
      end
      
    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/configuration_spec.rb
sunspot-rails-http-basic-auth-0.0.1 spec/sunspot/rails/configuration_spec.rb