Sha256: e6cd6deba467e15281298eef0a80492879989dd33c8f8b949af345d04b2a0f4d
Contents?: true
Size: 669 Bytes
Versions: 8
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' describe Waistband::Configuration do let(:config) { Waistband.config } it "loads config yml" do config.host.should eql 'http://localhost' config.port.should eql 9200 end it "loads indexes config" do config.index('search').should be_a Hash config.index('search')['name'].should eql 'search_test' config.index('search')['settings']['index']['number_of_shards'].should eql 4 end it "loads multiple indexes config" do config.index('events').should be_a Hash config.index('events')['name'].should eql 'events_test' config.index('events')['settings']['index']['number_of_shards'].should eql 4 end end
Version data entries
8 entries across 8 versions & 1 rubygems