Sha256: 29e32c9c5e559b957603d8e9c85fa281c9e2ff7f4f7c9e5e097f9d9d837bfe95

Contents?: true

Size: 558 Bytes

Versions: 8

Compression:

Stored size: 558 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)
      bunny.stop
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
bunny-0.7.12 spec/spec_09/amqp_url_spec.rb
bunny-0.7.11 spec/spec_09/amqp_url_spec.rb
bunny-0.7.10 spec/spec_09/amqp_url_spec.rb
bunny-0.8.0 spec/spec_09/amqp_url_spec.rb
sparqcode_bunny-0.0.2 spec/spec_09/amqp_url_spec.rb
bunny-0.7.9 spec/spec_09/amqp_url_spec.rb
sparqcode_bunny-0.0.1 spec/spec_09/amqp_url_spec.rb
bunny-0.7.8 spec/spec_09/amqp_url_spec.rb