Sha256: a346e819afddad2a01576f0bdab7e92f300103b84dced89118d9c14a839d095e
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
require 'spec_helper' describe Configuration do context "from hash" do before(:all) do @config = Configuration.new.from_hash('backend' => 'beanstalk', 'host' => 'localhost:11300', 'tube' => 'quebert-config-test') end it "should configure backend" do backend = @config.backend backend.should be_instance_of(Quebert::Backend::Beanstalk) # Blech, gross nastiness in their lib, but we need to look in to see if this stuff as configed pool = backend.send(:pool) pool.connections.first.address.should eql('localhost:11300') tube = backend.send(:tube) tube.name.should eql('quebert-config-test') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quebert-2.0.4 | spec/configuration_spec.rb |
quebert-2.0.3 | spec/configuration_spec.rb |