Sha256: 40c1cf6fcfe5c5610e962ff15ceaa20e9d6f1769c7af8d65ae505cc805754e6e

Contents?: true

Size: 541 Bytes

Versions: 4

Compression:

Stored size: 541 Bytes

Contents

# encoding: utf-8

# Assumes that target message broker/server has a user called 'guest' with a password 'guest'
# and that it is running on 'localhost'.

# If this is not the case, please change the 'Bunny.new' call below to include
# the relevant arguments e.g. @b = Bunny.new(:user => 'john', :pass => 'doe', :host => 'foobar')

require "bunny"

describe Bunny do
  context "AMQP URL parsing" do
    it "handles port properly" do
      bunny = Bunny.new("amqp://dev.rabbitmq.com:1212")
      bunny.port.should eql(1212)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bunny-0.7.6 spec/spec_09/amqp_url_spec.rb
bunny-0.7.5 spec/spec_09/amqp_url_spec.rb
bunny-0.7.4 spec/spec_09/amqp_url_spec.rb
bunny-0.7.3 spec/spec_09/amqp_url_spec.rb