Sha256: 293d5fb10252771ab238692e7d7a5943dd29e27ca0d7ec8cce5b1ade0900874d
Contents?: true
Size: 703 Bytes
Versions: 8
Compression:
Stored size: 703 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/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 backend.instance_variable_get('@addrs').should eql('localhost:11300') backend.instance_variable_get('@default_tube').should eql('quebert-config-test') end end end
Version data entries
8 entries across 8 versions & 1 rubygems