Sha256: 89455a158a1ed40312c71f9b210b5302d6e242d67fb5e50297e2359b7fed8244
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
require 'spec_helper' describe Rack::AMQP::Configuration do it 'yields a configuration' do x = nil Rack::AMQP.configure do |c| x = c end expect(x).to_not be_nil end it 'allows configuration querying' do expect(Rack::AMQP.configuration).to_not be_nil end it 'accepts the rabbit host' do Rack::AMQP.configure { |c| c.rabbit_host = 'foo' } expect(Rack::AMQP.configuration.rabbit_host).to eql('foo') end it 'accepts the queue name' do Rack::AMQP.configure { |c| c.queue_name = 'bar' } expect(Rack::AMQP.configuration.queue_name).to eql('bar') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jackalope-0.0.1 | spec/rack/amqp/configuration_spec.rb |